powered by
Produce a text representation of a polynomial object
# S3 method for polynom as.character(x, variable = "x", decreasing = FALSE, ...)
A character string representation of the polynomial
The polynomial object in question
Character string: what variable name should be used?
Logical: in decreasing powers or increasing powers?
Additional arguments (ignored as yet)
p <- poly_from_zeros(-2:3) as.character(p, "z", FALSE) as.character(p, "z", TRUE) parse(text = as.character(p, "z", TRUE))[[1]]
Run the code above in your browser using DataLab