`coxeter/text/orbit_size` := TEXT(`    `,
`FUNCTION:  orbit_size - size of a reflection group orbit`,`    `,
`CALLING SEQUENCE:  orbit_size(v,R);`,`                   orbit_size(v,R,-1);`,
`    `,`PARAMETERS:  R = a root system data structure`,
`             v = a linear combination of e1,e2,...`,`   `,`SYNOPSIS:   `,
`  A "vector" (distinct from the vector data structure used by Maple) is a`,
`  linear combination of the standard orthonormal basis e1,e2,e3,..., with`,
`  coefficients that are rational or floating-point.`,`   `,
`  If v is a vector, orbit_size(v,S) returns the size of the orbit of W(R)`,
`  acting on v by reflections. This number is determined by finding a set`,
`  of reflections that generate the stabilizer of v. If any floating-point`,
`  coordinates occur in v or base(R), then there is a (small) potential for`,
`  error, in that the reflection corresponding to a root r is considered to`,
`  fix v if abs(iprod(r,v)) is at most epsilon ( = 0.001, by default).`,`   `,
`  If a third argument is present, the number returned is the size of the`,
`  union of the orbits of v and -v, or equivalently the size of the orbit`,
`  of v under the action of the group generated by -1 and W(R).`,`   `,
`  To adjust epsilon, assign a new value to ``coxeter/default``[epsilon].`,
`   `,
`  For a description of root system data structures, see coxeter[structure].`,
`   `,`EXAMPLES:   `,`  with(weyl,weights); w:=weights(D5);`,
`  orbit_size(w[1],D5);                        yields         16`,
`  orbit_size(w[1],D5,-1);                     yields         32`,
`  v:=base(H4)[2];`,
`  orbit_size(v,H4);                           yields         120`,`    `,
`SEE ALSO:  base, iprod, orbit, size, structure, vec2fc`):

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