The statement about the problem is somewhat fuzzy, so first I will clarify my own interpretation:
You have a polynomial function
f (x) = C n x n + C n-1 x n-1 sup> + ... + C 0
[I changed A, B, ... Z to C n , C n-1 , ..., C 0 more easily to work with linear algebra below.]
Then you also have a transformation, such as: z = ax + b that you want to use to find the coefficients for the same polynomial, but in terms of z:
f (z) = D n z n + D n-1 z n-1 sup> + ... + D 0
This can be done quite easily with some linear algebra. In particular, you can define a matrix (n + 1) and times; (n + 1) T, which allows us to perform matrix multiplication
d = T * c ,
where d is the column vector with the top input D 0 , for the last record D n , the column vector c is similar for C i , and the matrix T has the (i, j) th [i th row, j th column] record t ij given
t ij = (j select i) a i b ji .
Where (j selects i) is the binomial coefficient, and = 0 for i> j. Also, unlike standard matrices, I think that i, j each range from 0 to n (usually you start with 1).
This is basically a good way to write out the extension and recompression of the polynomial by manually connecting z = ax + b and using the binomial theorem .
Tyler
source share