Returns an array Interpolant of length n, which contains the second derivatives of the spline interpolating function g(x) at the tabulated points x[i], where i = 0, 1, …, n–1.

![]() |
Y is the array of dependent values. If the number of elements in the X is different from the number of elements in the Y, the VI sets the output Interpolant to an empty array and returns an error. |
![]() |
X is the array of independent values. If the number of elements in the X is different from the number of elements in the Y, the VI sets the output Interpolant to an empty array and returns an error. |
![]() |
initial boundary is the first derivative of interpolating function g(x) at x[0], g'(x[0]). The default is 1.00E+30, which causes this VI to set the initial boundary condition for a natural spline. Refer to Spline Interpolant Details for a definition of g(x). |
![]() |
final boundary is the first derivative of interpolating function g(x) at x[n – 1], g'(x[n – 1]). The default is 1.00E+30, which causes this VI to set the final boundary condition for a natural spline. |
![]() |
Interpolant is the second derivative of interpolating function g(x) at points x[i], i = 0, 1, …, n – 1.
You can use Interpolant as an input to the Spline Interpolation VI to interpolate y at any value of
x0 |
![]() |
error returns any error or warning from the VI. You can wire error to the Error Cluster From Error Code VI to convert the error code or warning into an error cluster. |
Input arrays X and Y are of length n and contain a tabulated function, as shown in the following equation:
f(xi) = yi
with
x0 < x1 < …xn – 1
initial boundary and final boundary are the first derivative of the interpolating function g(x) at points x0 and xn – 1, respectively. g(x) passes all the points formed by inputs X and Y.
If initial boundary and final boundary are equal to or greater than 1030, the VI sets the corresponding boundary condition for a natural spline, with zero second derivative on that boundary.
The interpolating function g(x) passes through all the points
{xi, yi}, g(xi) = yi
where i = 0, 1, …, n – 1.
The VI calculates the interpolating function g(x) by interpolating every interval [xi, xi + 1] with a cubic polynomial function pi(x) that meets the following conditions:
For the preceding conditions, i = 0, 1, …, n – 2.
From the last condition, we derive the following equations:


where i = 1, 2, …, n – 2
These are n – 2 linear equations with n unknowns
i = 0, 1, …, n – 1. This VI computes

from initial boundary and final boundary using the formula

Here


You can derive this formula from the preceding conditions. This VI then uses

to solve all the

for i = 1, …, n – 2.

is the output Interpolant.
Refer to the Interpolation Solver VI in the labview\examples\analysis\intpxmpl.llb for an example of using the Spline Interpolant VI.