`weyl/text/weight_coords` := TEXT(`    `,
`FUNCTION:  weight_coords - coords of a vector w.r.t. fundamental weights`,
`    `,`CALLING SEQUENCE:  weight_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), weight_coords(v,R) returns the`,
`  list of coordinates of v relative to the fundamental weights (weights(R)).`,
`   `,
`  More generally, v can be any linear combination of e1,e2,..., 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:   `,
`  weight_coords(rho(F4),F4);             yields           [1,1,1,1]`,
`  weight_coords(a*e1+b*e2+c*e3,B3);      yields       [2*a, -a+b, -b+c]`,
`    `,`SEE ALSO:  weights, coxeter[root_coords], coxeter[structure]`):

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