Function grades()
returns an (unordered) vector specifying the
grades of the constituent terms. Function grades<-()
allows
idiom such as grade(x,1:2) <- 7
to operate as expected [here to
set all coefficients of terms with grades 1 or 2 to value 7].
Function grade(C,n)
returns a Weyl object with just the
elements of grade g
, where g %in% n
.
The zero grade term, grade(C,0)
, is given more naturally by
constant(C)
.