Open Access. Powered by Scholars. Published by Universities.®

Physics Commons

Open Access. Powered by Scholars. Published by Universities.®

Brigham Young University

Series

2018

PCHIP

Articles 1 - 1 of 1

Full-Text Articles in Physics

Cubic Interpolation With Irregularly-Spaced Points In Julia 1.4, R. Steven Turley Aug 2018

Cubic Interpolation With Irregularly-Spaced Points In Julia 1.4, R. Steven Turley

Faculty Publications

This article shows how to interpolate between regularly- or irregularly-spaced points in Julia 1.4. It has derivations of the theory behind cubic splines, and piece-wise cubic hermite polynomial interpolation. The spline interpolants are continuous and have continuous first and second derivatives. The hermite polynomial interpolants are continuous and have continuous first derivatives. Three techniques are implemented to determine the slope at the data points for the interpolation (knots). One uses the average slope of the neighboring segments. Another use the quadratic polynomial passing through the point and its two neighbors. The third, PCHIP, is similar to the first method, but …