Last data update: 2014.03.03
|
R: Switch indeterminates in a polynomial
Switch indeterminates in a polynomial
Description
Switch indeterminates in a polynomial
Usage
plug(p, indeterminate, value)
Arguments
p |
a polynomial
|
indeterminate |
the indeterminate in the polynomial to
switch
|
value |
the value/indeterminate to substitute
|
Value
an mpoly object
Examples
(p <- mp("(x+y)^3"))
plug(p, "x", 5)
plug(p, "x", "t")
plug(p, "x", "y")
plug(p, "x", mp("2y"))
plug(p, "x", mp("x + y"))
mp("((x+y)+y)^3")
Results
|