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

\begin{Mhelppage}{Perm2Sign}{V. Prosper}%
  \begin{MInfo}
    \eng{returns the signature of a permutation}
  \end{MInfo}
  

\begin{MCalls}
\Mcall{perm}
\end{MCalls}

\begin{MParameters}
  \param{perm}
  \eng{any list denoting a permutation} 
\end{MParameters}

\begin{MIntro}
  \eng{
The {\Mthis} function calculates the signature of  a  permutation. This
value is equal to
\Mmath{(-1)\^(the length of \Mex{perm})}%
      {(-1)^{\mathrm{lgth}(\mathtt{perm})}}.
}
    \end{MIntro}

\begin{MExample}{ex1}
\begin{Mexin}
muEC::SG::Perm2Sign( [1,4,2,3] );
\end{Mexin}
\begin{Mexout}
                               1
\end{Mexout}
\end{MExample}

\MRelatedFunctions{Perm2Length,SgTranspo}
\end{Mhelppage}
