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.
Please note that this resource requires
at least version 1.5 of
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. download 9kb .zip
Last Modified: September 17, 2011
%0 Computer Program %A Christian, Wolfgang %D September 17, 2011 %T Cubic Spline Model %8 September 17, 2011 %U http://www.compadre.org/Repository/document/ServeFile.cfm?ID=11478&DocID=2442
Disclaimer: ComPADRE offers citation styles as a guide only. We cannot offer interpretations about citations as this is an automated procedure. Please refer to the style manuals in the Citation Source Information area for clarifications.