ACE BN BNA CG CLG COMP FM FREE HEKA IDCA NCA NCSF PART SFA SG SGA SP SYMF TAB TYP

FUNCTION: Perm2Betti - compute the Betti polynomial

CALLING SEQUENCE:

Perm2Betti(perm, 'q')
SG[Perm2Betti](perm, 'q')

PARAMETERS:

perm = any list denoting any permutation

SYNOPSIS:

EXAMPLES:


> with(SG):
> Perm2Betti([3,4,1,2], 'q');
 
                            4      3      2
                           q  + 4 q  + 5 q  + 3 q + 1
 

SEE ALSO: CompPerm Perm2Interval