Skip to content

Input your cool random numbers and then get a function for the same.

Notifications You must be signed in to change notification settings

ppmpreetham/newton_gregory_interpolation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Newton-Gregory Interpolation

This is an implementation of Newton-Gregory interpolation method in Rust. Input your cool random numbers and then get a function for that.

Usage

Here, we are inserting the random list of numbers [1, 2, 4, 8, 16, 31] from the famous Dividing a circle into areas question in math.

fn main() {
    let result = newton_gregory_interpolation(vec![1, 2, 4, 8, 16, 31]);
    println!("{}", result);
}

Note: The nC notation in the formula represents the binomial coefficient, which is used in the Newton-Gregory interpolation method

About

Input your cool random numbers and then get a function for the same.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages