Source Code Archive

 

An Introduction to Numerical Analysis

with Applications to the Physical,

Natural and Social Sciences

 

 

C++ Code: Interpolation

 

Code

Header File

Documentation

Sample Main with output

 

 

Contents

neville.C

Neville's algorithm

divdiff.C

calculate the coefficients of the Newton form of the interpolating polynomial using divided differences

nf_eval.C

evaluate the Newton form of the interpolating polynomial

cubic_nak.C

construct the cubic spline interpolant with "not-a-knot" boundary conditions

cubic_clamped.C

construct the cubic spline interpolant with clamped boundary conditions

spline_eval.C

evaluate a spline interpolant (works with the output from cubic_nak.C and cubic_clamped.C)

hermite.C

calculate the coefficients of the Hermite interpolating polynomial

cubic_herm.C

evaluate the Hermite cubic interpolant