Numerical Methods at work

Disclaimer:
Permission to use, copy, and distribute this software, and It’s documentation for any non-commercial purpose is hereby granted without fee, provided: THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL Henrik Vestermark, BE LIABLE FOR ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

Cubic Spline or Polynomial Interpolation

Natural Cubic Splines & Polynomial Interpolation vs. 1.7


Cubic Spline
Polynomial


  • Graphing
  • Verbose
  • Method used
  • Help

Method

In the mathematical field of numerical analysis, spline interpolation is a form of interpolation where the interpolant is a special type of piecewise polynomial called a spline. Spline interpolation is preferred over polynomial interpolation because the interpolation error can be made small even when using low degree polynomials for the spline. Spline interpolation avoids the problem of Runge's phenomenon which occurs when interpolating between equidistant points with high degree polynomials.
See Cubic Spline Interpolation and Polynomial Interpolation

Help

Version: 1.4

Explanation: Select Cubic Spline or Polynomial interpolation or both. Enter points that need to be approximated with a polynomial. e.g. -2,1;-1.5,2;-1,2;-0.5,1.5;
0,1;0.5,1.5;1,2;1.5,3;2,5 and hit the Solve Interpolation button. 
The degree of the approximated polynomial can be set between 1..9.
Floating point in standard notation with e or E as the exponent is OK. fx. 120 1.20e2 12E+1 1200E-1 all represent the same number 120.
Verbose print-out details about each iteration step, if checked.
The Test button setup default points to approximate (for testing only)
Email: hve@hvks.com if you have any questions.
This version has been tested with Edge, Chrome, Safari, and Firefox browsers.


Rate this page

Click on the stars below to rate this page

Low
a Star
a Star
a Star
a Star
a Star
High


Corrections:
17 Nov 2023vs. 1.7Switch to the Plotly library for graphing
9 Nov 2019vs. 1.6Redesign GUI
28 Nov 2011vs. 1.5Layout changes and switching to using canvas objects for HTML graphics. Now Print also print the Graphic of the interpolation
15 Jul 2008vs 1.4The verbose option displays new the interpolation polynomials
8 Apr 2007vs 1.2Cubic Spline interpolation added
27 Dec 2006vs 1.1Initial release