% $Date: 2003/09/15 16:37:45 $ $Author: nthiery $ $Revision: 1.1.1.1 $

\begin{Mhelppage}{Part2Exp}{V. Prosper}%
  \begin{MInfo}
    \eng{multiplicities of parts in a given partition}
  \end{MInfo}
  

  \begin{MCalls}
    \Mcall{part\Mopt{,n}}
  \end{MCalls}

  \begin{MParameters}
    \param{part}
    \eng{a partition}
  \end{MParameters}
  \begin{MOptions}
    \option{n}
    \eng{an integer} 
  \end{MOptions}
  
  \begin{MIntro}
    \eng{The {\Mthis} function is the inverse function of
      \Mex{Exp2Part}.
      
      The {\Mthis} function gives the multiplicities of the parts of
      the partition part, the result being also known as the
      exponential notation of \Mex{part}.
 
      The exponential notation of a partition is a vector of positive
      integers that indicates the number of occurrences a part appears
      in the partition.
      
      When called with a second argument \Mex{n}, it returns the same
      list augmented with some zeros representing the number of
      occurrences of the integers from the maximal part of the
      partition up to \Mex{m} in the partition.  }
  \end{MIntro}


\begin{MExample}{ex1}
\begin{Mexin}
muEC::PART::Part2Exp( [6,4,4,2,1] );
\end{Mexin}
\begin{Mexout}
                      [1, 1, 0, 2, 0, 1]
\end{Mexout}
\begin{Mexin}
muEC::PART::Part2Exp( [6,4,4,2,1], 10 );
\end{Mexin}
\begin{Mexout}
                [1, 1, 0, 2, 0, 1, 0, 0, 0, 0]
\end{Mexout}
\end{MExample}

\MRelatedFunctions{Exp2Part}
\end{Mhelppage}
