Contents Previous Next Subchapters

Remove Leading Zero Coefficients from a Descending Polynomial
Syntax polyreduce(p)
See Also conv , polmul

Removes leading coefficients that are near zero from the descending polynomial p (thus the resulting descending polynomial is equivalent). A coefficient is considered near zero if its absolute value is less than or equal to
     length(p) * eps * max(abs(p))
where eps is machine epsilon (if p is real, machine epsilon corresponds to single precision, otherwise it corresponds to double precision.) If the polynomial p is identically zero, the scalar zero with the same type as p is returned.

If you enter
     p = [0, 1, 2]
O-Matrix will reply
     [ 1 , 2 ]