Wolfram Library Archive


All Collections Articles Books Conference Proceedings
Courseware Demos MathSource Technical Notes
Title Downloads

Natural Cubic Spline coefficient command and a Clamped Cubic Spline coefficient command for Mathematica and examples of its use
Author

Joseph M. Herrmann
Organization: Texas A&M University
Department: Department of Mathematics
Old MathSource #

0207-447
Revision date

1994-07-01
Description

The notebook nspline.nb contains a Mathematica command which produces the natural cubic spline coefficients for a set of 2D data points. Examples of its use to create and plot the natural cubic spline functions and to use these functions to estimate the derivative or integral of a function approximated by the set of data points is included. A similar notebook cspline.nb contains a Mathematica command which produces the clamped cubic spline coefficients for a set of 2D data points and an example of its use. Neither command currently has error checking capabilities and assumes that the list of data points or other input arguments are correct.

This notebook may be useful to those using cubic splines in their work and educators and students learning about cubic splines to approximate functions.
Subject

*Applied Mathematics > Numerical Methods
Keywords

interpolation, curve fitting, cubic splines
Downloads Download Wolfram CDF Player

Download
cspline.nb (26.4 KB) - Mathematica notebook containing clamped cubic spline coefficient command and examples
Download
nspline.nb (29.2 KB) - Mathematica notebook containing natural cubic spline coefficient command and examples

Files specific to Mathematica 2.2 version:
Download
cspline.ma (13.8 KB) - Mathematica Notebook 2.2 or older
Download
nspline.ma (15.4 KB) - Mathematica Notebook 2.2 or older