[back] [prev] [next] [index] [root]

 


PolyDeg

Returns the degree of a given polynomial.

Syntax:

n := PolyDeg(f);

integer
  n  
polynomial
  f  

Description:

Returns the degree n of a polynomial f. The degree of the zero-polynomial is -1.


Example:


kash> f := Poly(Zx, [1, 2, 3, 4, 5, 6]);
x^5 + 2*x^4 + 3*x^3 + 4*x^2 + 5*x + 6
kash> PolyDeg(f);
5
kash> f := Poly(Zx, [0]);
0
kash> PolyDeg(f);
> -1


<- back[back] [prev] [next] [index] [root]