`coxeter/text/reflect` := TEXT(`    `,
`FUNCTION:  reflect - apply reflections to a vector`,`    `,
`CALLING SEQUENCE:  reflect(r,v);`,`                   reflect(r1,r2,...,v);`,
`    `,`PARAMETERS:  r,r1,r2,...,v = linear combinations 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 r and v are vectors then reflect(r,v) will return the vector obtained`,
`  by reflecting v across the hyperplane orthogonal to r.`,`   `,
`  Although r is required to have coefficients that are rational or`,
`  floating-point, this requirement is not necessary for v. All that is`,
`  required for v is that the function calls coeff(v,e1), coeff(v,e2),...`,
`  return valid answers. `,`   `,
`  In the second form, if r1,r2,... is a sequence of zero or more vectors,`,
`  then reflect(r1,r2,...,v) returns the result of successively reflecting`,
`  v across the hyperplanes ...,r2,r1, in that order. In particular,`,
`  reflect(r1,r2,v) is equivalent to reflect(r1,reflect(r2,v)).`,`   `,
`EXAMPLES:   `,
`  reflect(e1+e2, e1+2*e2);              yields         -2*e1-e2`,
`  v:=reflect(e1+e2, a*e1+b*e2);`,
`  collect(v,{e1,e2});                   yields        -b*e1-a*e2`,
`  w0:=longest_elt(B4); S:=base(B4); v:=interior_pt(B4);`,
`  reflect(seq(S[i],i=w0),v);            yields    -e1-2*e2-3*e3-4*e4`,`    `,
`SEE ALSO:  interior_pt, iprod, orbit, vec2fc`):

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