polyreduce function

Reduce polynomial

Reduce polynomial

Reduce a polynomial coefficient vector to a minimum number of terms by stripping off any leading zeros.

polyreduce(pc)

Arguments

  • pc: vector of polynomial coefficients

Returns

Vector of reduced polynomial coefficients.

Examples

p <- polyreduce(c(0, 0, 1, 2, 3))

Author(s)

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

  • Maintainer: Geert van Boxtel
  • License: GPL-3
  • Last published: 2024-09-11