`coxeter/text/root_coords` := TEXT(`    `,
`FUNCTION:  root_coords - coordinates of a vector w.r.t. simple roots`,`    `,
`CALLING SEQUENCE:  root_coords(v,R);`,`    `,
`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 in the span of base(R), root_coords(v,R) returns`,
`  the list of coordinates of v relative to the simple roots in base(R).`,`   `
,`  More generally, the second argument can be any list of independent vectors`
,`  and v can be any linear combination of e1,e2,... in their span, provided`,
`  that the function calls coeff(v,e1),coeff(v,e2),... return valid answers.`,
`  That is, the coefficients of v need not be rational or floating-point.`,
`   `,
`  For a description of root system data structures, see coxeter[structure].`,
`   `,`EXAMPLES:   `,
`  root_coords(highest_root(G2),G2);      yields              [3,2]`,
`  root_coords(a*e1+b*e2+c*e3,B3);        yields         [a+b+c, b+c, c]`,
`  rc:=root_coords(2*e2,H3);`,
`  evalf(rc,3);                           yields       [2.62, 3.24, 1.62]`,
`    `,`SEE ALSO:  base, structure, weyl[weight_coords]`):

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