`coxeter/text/rank` := TEXT(`    `,
`FUNCTION:  rank - rank of a root system or Coxeter group`,`    `,
`CALLING SEQUENCE:  rank(R);`,`    `,
`PARAMETERS:  R = a root system data structure`,`   `,`SYNOPSIS:   `,
`  rank(R) returns the rank of the root system R; i.e., the dimension of the`,
`  vector space spanned by the roots of R, or equivalently, the number of`,
`  simple reflections in W(R).`,`   `,
`  For a description of root system data structures, see coxeter[structure].`,
`   `,`EXAMPLES:   `,
`  rank(I2[7]);                           yields             2`,
`  rank(A3^2*B3*D10);                     yields             19`,
`  m:=cartan_matrix(C4); rank(m);         yields             4`,`    `,
`SEE ALSO:  base, diagram, structure`):

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