Grades and Grade Projection

The grade command returns a set of integers which consist of the grades of an expression

> grade(1+e[1,2]);

[Maple Math]

> grade(2*e[1]+3*e[2]);

[Maple Math]

The project command projects out the specified grade from an expression, the grades can either be a integer or a set of integers.

> project(1+2*e[1]+3*e[2]+e[1,2],1);

[Maple Math]

> project(1+2*e[1]+3*e[2]+e[1,2],{0,2});

[Maple Math]