Cubic Spline Model Documents

This material has 2 associated documents. Select a document title to view a document's information.

Main Document

Cubic Spline Model 

written by Wolfgang Christian

The Cubic Spline Model displays a cubic spline and its derivatives.  The model constructs N third-order piecewise continuous polynomialz (cubic splines) that connect N data points (nodes) with unit separation.  Polynomial coefficients are chosen such that the resulting curve and its first derivative are smooth at the nodes.
 
Users can drag the nodes and observe the resulting curve. Radio buttons display first and second derivative curves.  Note that the second derivative curve consists of line segments because the second derivative of a piecewise cubic polynomial is a piecewise first order polynomial.

The Cubic Spline Model was created using the Easy Java Simulations (EJS) modeling tool.  It is distributed as a ready-to-run (compiled) Java archive.  Double click the ejs_math_CubicSplineDemo.jar file to run the program if Java is installed.

Last Modified June 3, 2014

This file has previous versions.

Source Code Documents

Cubic Spline Source Code 

The source code zip archive contains an EJS-XML representation of the Cubic Spline Model.   Unzip this archive in your EJS workspace to compile and run this model using EJS.

Last Modified September 17, 2011