Math.polynomial(x, digits)
x
| An object of class polynomial |
digits
|
Precision, as required by round() or signif()
|
Most math group functions are disallowed with polynomial arguments. The
only exceptions are round()
and signif()
which may be used
to transform the coefficients accordingly.
p <- poly.from.values(1:4, (2:5)^2) p # 1 + 2.00000000000001*x + x^2 p <- round(p) p # 1 + 2*x + x^2