-
Notifications
You must be signed in to change notification settings - Fork 46
poly_interpol
Fabian Kindermann edited this page Apr 2, 2021
·
10 revisions
function poly_interpol(x, xi, yi)
Interpolates the (arbitrary) data pairs by a polynomial of degree , so that
-
real*8 :: x
orreal*8 :: x(:)
The point(s) where to evaluate the interpolating polynomial. This can be either a scalar or a one-dimensional array of arbitrary size. In the latter case, the polynomial is evaluated at each point supplied in the arrayx
. -
real*8 :: xi(:)
A one-dimensional array containing the nodes at which the interpolation data is supplied. -
real*8 :: yi(:)
A one-dimensional array containing the interpolation data at the nodesxi
. This input variable needs to have the same length asxi
.
-
real*8 :: poly_interpol
orreal*8 :: poly_interpol(:)
The value of the interpolating polynomial at the point(s) supplied inx
. This is a scalar if x is a scalar and a one-dimensional array if x is an array.
- For further reading refer to:
- Süli, E. & Mayers, D. F. (2003). An Introduction to Numerical Analysis. Cambridge: Cambridge University Press.
- Powell, M.J.D. (1996). Approximation Theory and Methods. Cambridge: Cambridge University Press.
- This routine is used in the following programs:
prog02_17.f90