commands → degree

degree(A,X)

The degree command computes the degree of a polynomial A in a variable X. If X is not specified the total degree is computed.

Examples

f = 3*x^2 + 5*x + 7;
degree(f,x);
	2

g = 5*x*y + 3*z^3;
degree(g,y);
	1
degree(g);
	3