next up previous contents index
Next: Function cubic_interpolate Up: Module linearalgebra_module Previous: Function random_unit_vector   Contents   Index

Function linear_interpolate


\begin{boxedminipage}{\textwidth}
\begin{verbatim}y = linear_interpolate(x0,y0,x1,y1, &
x)\end{verbatim}
\end{boxedminipage}

Linearly interpolate between the points $(x_0,y_0)$ and $(x_1,y_1)$. Returns the interpolated $y$ at position $x$, where $x_0 \le x \le x_1$.

x0, y0, x1, y1, x -- real(dp), intent(in)

Return value -- real(dp)

cubic_interpolate function

gabor 2009-06-30