lagrangian_interpolation

Crates.iolagrangian_interpolation
lib.rslagrangian_interpolation
version0.1.1
sourcesrc
created_at2024-03-30 15:20:11.338703
updated_at2024-03-30 15:22:34.966866
descriptionAn algorithm to interpolate between points with polynomials.
homepage
repositoryhttps://github.com/ethanbarry/lagrange_interpolation
max_upload_size
id1191158
size5,764
Ethan Barry (ethanbarry)

documentation

README

Lagrange Interpolation

This is a technique that interpolates a function from tabulated values. An arbitrary number of tabulated values may be used, and they may have any arbitrary spacing. This is a useful routine for Gaussian Quadrature and other advanced algorithms.

Usage

Just import the single function in the crate with this statement.

use lagrange_interpolation::lagrange_interpolate;

Refer to the tests for examples of how to set up the function.

Credit

The implementation was guided by this excellent textbook on Celestial Mechanics. While I'm sure many clever FORTRAN and C implementations are available, I felt it would be nice to implement this in Rust.

Commit count: 8

cargo fmt