as.character.polynom {PolynomF} | R Documentation |
Coerces a polynom
object to a printable character
representation.
## S3 method for class 'polynom': as.character(x, variable = "x", decreasing = FALSE, ...)
x |
A polynom object |
variable |
Character string with the desired variable name. |
decreasing |
Should the powers be decreasing, or increasing as in power series form? |
... |
Not presently used |
The character string may be parsed into an expression for the polynomial itself.
A character string.
Bill Venables, with contributions from Kurt Hornik
None
p <- poly.from.zeros(-2:4) as.character(p) # "48*x - 28*x^2 - 56*x^3 + 35*x^4 + 7*x^5 - 7*x^6 + x^7"