change.origin {PolynomF} | R Documentation |
These small convenience functions shift polynomials by relocating the
origin to a new position. The primary function is generic and active
methods are provided for polynom
and polylist
objects.
## Default S3 method: change.origin(p, o, ...) ## S3 method for class 'polynom': change.origin(p, o, ...) ## S3 method for class 'polylist': change.origin(p, o, ...)
p |
A polynim or polylist object. |
o |
The value of the original variable to become the new origin, that is the zero value in the shifted variable. |
... |
Not used |
The function change.origin.default
is a trap for unimplemeted
methods.
A polynom
or polylist
object with the origin shifted to 0
.
Bill Venables
None
x <- polynom() p <- 1 - 2*x + x^2 change.origin(p, 1) ## x^2