muEC::COMP::Compo2MajorIndex – major index of a composition

The muEC::COMP::Compo2MajorIndex function computes the major index of a given composition. Let math be a composition, then muEC::COMP::Compo2MajorIndexmath is set to be math.

→ Examples

Call:

muEC::COMP::Compo2MajorIndex(compo)

Parameters:

compo

any list denoting a composition

Related Functions:

muEC::COMP::ListCompo, muEC::TYP::IsCompo

Example 1:

muEC::COMP::Compo2MajorIndex( [2,3,1,2] );

math