Back to functions

deg


sort

Returns the degree of the polynomial. Specify the variable to use in multivariate polynomials.

Usage: nerdamer("deg(p)")


Parameters

Expression/polynomial p A polynomial

EXAMPLES:
var x = nerdamer('deg(x^2+2*x+1)');
console.log(x.toString());
var y = nerdamer('deg(a*x^7+2*x+1,x)');
console.log(y.toString());
OUTPUT:
Back to functions