Reduce polynomial
Reduce a polynomial coefficient vector to a minimum number of terms by stripping off any leading zeros.
polyreduce(pc)
pc
: vector of polynomial coefficientsVector of reduced polynomial coefficients.
p <- polyreduce(c(0, 0, 1, 2, 3))
Tony Richardson, arichard@stark.cc.oh.us ,
adapted by John W. Eaton.
Conversion to R by Geert van Boxtel, G.J.M.vanBoxtel@gmail.com