### 5.27.4 Polynomial degree : degree

degree takes as argument a polynomial given by its symbolic
representation or by the list of its coefficients.

degree returns the degree of this polynomial (highest
degree of its non-zero monomials).

Input :

degree(x`^`

3+x)

Output :

3

Input :

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

Output :

3