`coxeter/text/class_size` := TEXT(`    `,
`FUNCTION:  class_size - determine sizes of conjugacy classes`,`    `,
`CALLING SEQUENCE:  class_size(w,R);`,`                   class_size(R);`,
`    `,`PARAMETERS:  R = a root system data structure`,
`             w = a list of integers representing an element of W(R)`,`   `,
`SYNOPSIS:   `,
`  If R is a root system of rank n, elements of the Coxeter group W(R) are`,
`  represented as lists of integers in the range 1..n. The group element`,
`  corresponding to w = [i_1,...,i_l] is the product of the generators`,
`  indexed by i_1,...,i_l. The indexing follows base(R).`,`   `,
`  class_size(w,R) returns the size of the conjugacy class of w in W(R).`,
`  class_size(R) returns a list of the sizes of all W(R)-conjugacy classes,`,
`  following the same ordering used by the functions class_rep, cprod,`,
`  induce, irr_chars, perm_char, and restrict.`,`   `,
`  The conjugacy class sizes for the exceptional groups E-F-H are read`,
`  from prestored lists in the coxeter/lib subdirectory. The lists for the`,
`  remaining irreducible cases are generated "on demand".`,`   `,
`  For a description of root system data structures, see coxeter[structure].`,
`   `,`EXAMPLES:   `,
`  class_size([4,3,2,1,2,1],H4);       yields               720`,
`  w0:=longest_elt(A2*G2);`,
`  class_size(w0,A2*G2);               yields                3`,
`  class_size(C3);                     yields       [1,6,8,3,6,3,6,1,6,8]`,
`    `,`SEE ALSO:  base, class_rep, cprod, perm_char, induce, irr_chars,`,
`           restrict, structure`):

if `+`(0)=0 then # Maple V.4 or later
  print(INTERFACE_HELP(insert, topic=`coxeter/class_size`,
  helpfile=HomeLib, text=`coxeter/text/class_size`))
elif ceil(0)=0 then # Maple V.2 or V.3
  `help/coxeter/text/class_size`:=`coxeter/text/class_size`:
  save `help/coxeter/text/class_size`, cat(HomeLib,`/help/coxeter/text/class_size.m`);
fi:
