poly2str | R Documentation |
Print polynomial as a character string.
poly2str(p, svar = "x", smul = "*", d = options("digits")$digits)
p |
numeric vector representing a polynomial |
svar |
character representing the unknown, default |
smul |
multiplication symbol, default |
d |
significant digits, default |
Simple string manipulation.
Returns the usual string representing a polynomial in mathematics.
poly2str(c(0))
poly2str(c(1, -1, 1, -1, 1))
poly2str(c(0, 1e-6, 1e6), d = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.