Definition

Given a function [Maple Math] defined on [Maple Math] and a set of nodes [Maple Math] with [Maple Math] inside the interval [Maple Math] . Choose [Maple Math] and [Maple Math] . Then a cubic spline interpolant , [Maple Math] , for [Maple Math] is a function which satisfies the following conditions:

(i) [Maple Math] consists of [Maple Math] , a cubic polynomial on the subinterval [Maple Math] for each [Maple Math] ;

(ii) [Maple Math] for all [Maple Math] ;

(iii) [Maple Math] for all [Maple Math] ;

(iv) [Maple Math] for all [Maple Math] ;

(v) [Maple Math] for all [Maple Math] ;

and a set of boundary conditions, either

(a) [Maple Math] = 0 (free/natural boundary);

or

(b) [Maple Math] and [Maple Math] (clamped boundary)

>

Clamped conditions normally lead to a more accurate approximation but it requires knowledge about the derivative of the function [Maple Math] at the two end points.