`coxeter/text/vec2fc` := TEXT(`    `,
`FUNCTION:  vec2fc - map a vector to the fundamental chamber by reflections`,
`    `,`CALLING SEQUENCE:  vec2fc(v,R);`,`                   vec2fc(v,R,'w');`,
`    `,`PARAMETERS:  R = a root system data structure`,
`             v = a linear combination of e1,e2,...`,
`             w = (optional) a name`,`   `,`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. A vector v is dominant`,
`  relative to a set of simple roots S if it belongs to the closure of the`,
`  fundamental chamber defined by S; i.e., iprod(r,v) >= 0 for all r in S.`,
`   `,
`  If v is a vector, vec2fc(v,R) returns the unique dominant vector (relative`,
`  to base(R)) that can be reached from v by a series of reflections.`,`     `,
`  If there is a third argument, it will be assigned the list of indices of`,
`  the simple reflections that were used to bring v into the fundamental`,
`  chamber. The list is ordered so that the first item in the list indexes`,
`  the first reflection applied to v. Therefore if S = base(R) and u is`,
`  the result returned by the function call  vec2fc(v,R,'w'), then`,
`  v = reflect(seq(S[i],i=w),u).`,`   `,
`  Among all the possible sequences of simple reflections that send v to u,`,
`  the one assigned to the third argument has minimum length, and is first`,
`  in lexicographic order among all such minimum-length expressions.`,`   `,
`  WARNING: If any floating-point coordinates occur in v or base(R), then`,
`  the result is only approximate in the sense that a vector u is considered`,
`  to be on the negative side of the hyperplane orthogonal to r if and only`,
`  if iprod(r,u) < -epsilon ( = -0.001, by default).`,`   `,
`  To adjust epsilon, assign a new value to ``coxeter/default``[epsilon].`,
`   `,
`  For a description of root system data structures, see coxeter[structure].`,
`   `,`EXAMPLES:   `,
`  vec2fc(-e1+2*e2,D4);             yields          2*e4+e3`,`  S:=base(F4);`,
`  vec2fc(-S[2],S,'w'),w;           yields   e4, [2,1,3,2,4,3,2,1]`,`    `,
`SEE ALSO:  base, interior_pt, iprod, orbit, rank, reflect, structure`):

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