#
# weight_coords(v,R) returns the coordinates of v with respect to the
#  fundamental weights. 
#
`weyl/weight_coords`:=proc(v,R) local S,s;
  S:=coxeter['base'](R);
  [seq(2*coxeter['iprod'](s,v)/coxeter['iprod'](s,s),s=S)]
end:
#
save `weyl/weight_coords`, cat(HomeLib,`/weyl/weight_coords.m`);
read cat(HomeLib,`/help/weyl/weight_coords`);
quit;

