# Shift oritin

### Description

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.

### Usage

1 2 3 4 5 6 | ```
## 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, ...)
``` |

### Arguments

`p` |
A |

`o` |
The value of the original variable to become the new origin, that is the zero value in the shifted variable. |

`...` |
Not used |

### Details

The function `change.origin.default`

is a trap for unimplemeted
methods.

### Value

A `polynom`

or `polylist`

object with the origin shifted to `0`

.

### Author(s)

Bill Venables

### References

None

### Examples

1 2 3 4 | ```
x <- polynom()
p <- 1 - 2*x + x^2
change.origin(p, 1)
## x^2
``` |