as.character.polynom | R Documentation |
Produce a text representation of a polynomial object
## S3 method for class 'polynom'
as.character(x, variable = "x", decreasing = FALSE, ...)
x |
The polynomial object in question |
variable |
Character string: what variable name should be used? |
decreasing |
Logical: in decreasing powers or increasing powers? |
... |
Additional arguments (ignored as yet) |
A character string representation of the polynomial
p <- poly_from_zeros(-2:3)
as.character(p, "z", FALSE)
as.character(p, "z", TRUE)
parse(text = as.character(p, "z", TRUE))[[1]]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.