Calculate the coefficients of a polynomial relative to a new origin
on the x axis.
Usage
change.origin(p, o)
Arguments
p
an object of class "polynomial".
o
a numeric scalar representing the new origin on the original
scale.
Value
A polynomial with coefficients relative to the re-located x axis.
Details
Let \(P(x) = \sum_i p_i x^i\) be a given polynomial and consider
writing \(P(x) = \sum_j q_j (x - o)^j\). This function calculates
the coefficients \(q_j\) and returns the result as a polynomial.