zap {PolynomF} | R Documentation |
A convenience function for setting polynomial coefficients likely
to be entirely round-off error to zero. The decision is relegated
to the function base::zapsmall
, to which this is a front-end.
zap(x, digits = getOption("digits")) ## Default S3 method: zap(x, digits = getOption("digits")) ## S3 method for class 'polynom' zap(x, digits = getOption("digits")) ## S3 method for class 'polylist' zap(x, digits = getOption("digits")) ## S3 method for class 'list' zap(x, digits = getOption("digits"))
x |
A polynomial or polylist object |
digits |
As for |
... |
Passed on to |
A polynomial or polylist object with minuscule coefficients set to zero.
(P <- poly_orth(-2:2, norm = FALSE)) zap(35*P)