`weyl/text/weights` := TEXT(`    `,
`FUNCTION:  weights - fundamental weights for a root system`,`    `,
`CALLING SEQUENCE:  weights(R);`,`    `,
`PARAMETERS:  R = a root system data structure`,`   `,`SYNOPSIS:   `,
`  weights(R) returns the list of fundamental weights for R.`,`   `,
`  If cr_1,...,cr_n are the simple co-roots for R, then the i-th fundamental`,
`  weight is the unique vector v_i in the span of base(R) such that`,`   `,
`                  iprod(v_i,cr_j) = Kronecker_Delta(i,j).`,`   `,
`  If r is a root, then cr = 2*r/iprod(r,r) is the corresponding co-root.`,
`   `,
`  For a description of root system data structures, see coxeter[structure].`,
`   `,`EXAMPLES:   `,
`  weights([2*e1,2*(e2-e1)]);    yields              [e1+e2, 2*e2]`,
`  weights(G2);                  yields           [-e1+e3,-e2-e1+2*e3]`,`    `,
`SEE ALSO:  rho, weight_coords, coxeter[co_base], coxeter[iprod],`,
`           coxeter[structure]`):

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