plug | R Documentation |
Switch indeterminates in a polynomial
plug(p, indeterminate, value)
p |
a polynomial |
indeterminate |
the indeterminate in the polynomial to switch |
value |
the value/indeterminate to substitute |
an mpoly object
# on an mpoly
(p <- mp("(x+y)^3"))
plug(p, "x", 5)
plug(p, "x", "t")
plug(p, "x", "y")
plug(p, "x", mp("2 y"))
plug(p, "x", mp("x + y"))
mp("((x+y)+y)^3")
# on an mpolyList
ps <- mp(c("x+y", "x+1"))
plug(ps, "x", 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.