Classic linear interpolation between two tabulated (known) points of a
one-variable function.
Usage
linpol(x, f, x0)
Value
A vector of real numbers. These are the actual interpolated values
(calculated using linear interpolation), corresponding to all values of
the grid x0.
Arguments
x
A vector of real numbers. Grid points corresponding to the tabulated
(known) values of the function.
f
A vector of real numbers. Tabulated (known) values of the function,
corresponding to the grid x.
x0
A vector of real numbers. These are the grid points chosen for
the interpolation. All points of this grid need to be within the tabulated grid.