`coxeter/text/base` := TEXT(`   `,
`FUNCTION:  base    - simple roots of a root system`,
`           co_base - simple co-roots of a root system`,`   `,
`CALLING SEQUENCE:  base(R);`,`                   co_base(R);`,`     `,
`PARAMETERS:  R = a root system data structure`,`   `,`SYNOPSIS:   `,
`  base(R) returns a list of simple roots for R, expressed as linear`,
`  combinations of the standard orthonormal basis e1,e2,e3,...`,`   `,
`  If R is not crystallographic, floating-point coordinates are used.`,`   `,
`  If R is a root system name, the list of roots is ordered canonically in a`,
`  way that does not vary with each Maple session. The base vectors for each`,
`  irreducible component of R are listed consecutively, sorted first by`,
`  series name (A,B,...,I), and then by rank within each series (so A2`,
`  precedes A3, A10 precedes B2,...). The diagram function can be used to`,
`  display the ordering of base vectors within a given irreducible component.`,
`   `,
`  If R is a Coxeter or Cartan matrix, the ordering of the rows and columns`,
`  of the matrix dictates the ordering of the simple roots.`,`   `,
`  If R is a list, it is assumed that R itself is a list of simple roots and`,
`  base(R) simply returns R.`,`   `,
`  co_base(R) returns the list of co-roots corresponding to the simple roots`,
`  listed by base(R). The co-root corresponding to root r is 2*r/iprod(r,r).`,
`   `,
`  For a description of root system data structures, see coxeter[structure].`,
`   `,`EXAMPLES:   `,
`  S:=base(A2*B2);             yields         [e2-e1, e3-e2, e4, e5-e4]`,
`  base(S);                    yields         [e2-e1, e3-e2, e4, e5-e4]`,
`  co_base(S);                 yields        [e2-e1, e3-e2, 2*e4, e5-e4]`,
`  base(I2[5]);                yields    [e1, -.8090169945*e1+.5877852520*e2]`,
`  CoxMat:=array([[1,3,2],[3,1,4],[2,4,1]]);`,
`  base(CoxMat);               yields             [e3-e2, e2-e1, e1]`,`   `,
`SEE ALSO:  cartan_matrix, cox_matrix, diagram, iprod, name_of, structure`):

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