Description Usage Arguments Value Author(s) Examples
Swap polynomial indeterminates
1 | swap(p, variable, replacement)
|
p |
polynomial |
variable |
the variable in the polynomial to replace |
replacement |
the replacement variable |
a mpoly object
David Kahle
1 2 3 4 5 6 7 8 9 10 11 | (p <- mp("(x + y)^2"))
swap(p, "x", "t")
## the meta data is retained
(p <- bernstein(3, 5))
(p2 <- swap(p, "x", "t"))
is.bernstein(p2)
(p <- chebyshev(3))
(p2 <- swap(p, "x", "t"))
is.chebyshev(p2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.