RobinHankin/freealg

grades() of the zero freealg object

Closed this issue · 1 comments

Knuth [TAOCP, volume 2, p436] defines the degree() of a freealgebra object [I call this the grade()] to be $-\infty$ but:

> grades(rfalg()*0)
[1] 0
> 

Actually he defines degree as follows

degree <- function(x){max(grades(x))}