|
FILTLAN
1.0a
|
Functions | |
| Vector | NewtonPolynomial (const Vector &x, const Vector &y) |
| Build a polynomial P(z) by Newton's divided differences and return the coefficient vector a. More... | |
| Real | NewtonPolynomialEvaluation (const Vector &a, const Vector &x, const Real z0) |
| Evaluate P(z0), i.e. the value of P(z) at z=z0, where P(z) is a Newton polynomial defined by a and x. More... | |
| Vector NewtonPolynomial | ( | const Vector & | x, |
| const Vector & | y | ||
| ) |
Build a polynomial P(z) by Newton's divided differences and return the coefficient vector a.
A Newton polynomial is in the form P(z) = a(1) + a(2)*(z-x(1))
| x | is the input vector of the domain values. |
| y | is the input vector of the range values. |
j, then it is assumed that the derivative of P(z) is to be zero at x(i) and the Hermite polynomial interpolation is applied. | Real NewtonPolynomialEvaluation | ( | const Vector & | a, |
| const Vector & | x, | ||
| const Real | z0 | ||
| ) |
Evaluate P(z0), i.e. the value of P(z) at z=z0, where P(z) is a Newton polynomial defined by a and x.
The newton polynomial is P(z) = a(1) + a(2)*(z-x(1))
1.8.14