The ComPADRE website will be unavailable on Saturday, August 1 due to network maintenance at the American Center for Physics.

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

*
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.

**Download**- 1156kb Java Archive File*ejs_math_CubicSplineDemo.jar*

Last Modified *June 3, 2014*

*
This file has previous versions.
*

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.

**Download**- 9kb Compressed File*ejs_math_CubicSplineDemo.zip*

Last Modified *September 17, 2011*

*
*