next up previous contents index
Next: Function is_in_array Up: Module linearalgebra_module Previous: Function linear_interpolate   Contents   Index

Function cubic_interpolate


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

Perform a cubic interpolation between the points $(x_0,y_0)$ and $(x_1,y_1)$, using the cubic function with zero first derivative at $x_0$ and $x_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)

is_in_array function

gabor 2009-06-30