Previous Up Next

2.24.4  Polynomial degree : degree

degree takes as argument a polynomial given by it’s symbolic representation or by the list of it’s coefficients.
degree returns the degree of this polynomial (highest degree of it’s non-zero monomials).
Input :

degree(x^3+x)

Output :

3

Input :

degree([1,0,1,0])

Output :

3

Previous Up Next