Contents Previous Next Subchapters Current Chapters-> pol2asc polval polyval polyvalm poladd polmul polcomp polder zero2pol roots poly pol2zero polcheb polyreduce mlmode_conv deconv residue compan monomial Parent Chapters-> Omatrix6 polynomial polyreduce Search Tools-> contents reference index search

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

Description
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 ```               2      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.

Example
If you enter ```      p = [0, 1, 2]      polyreduce(p) ``` O-Matrix will reply ```      [ 1 , 2 ] ```