https://github.com/ppmpreetham/newton_gregory_interpolation
Input your cool random numbers and then get a function for the same.
https://github.com/ppmpreetham/newton_gregory_interpolation
mathematics number-theory
Last synced: 2 months ago
JSON representation
Input your cool random numbers and then get a function for the same.
- Host: GitHub
- URL: https://github.com/ppmpreetham/newton_gregory_interpolation
- Owner: ppmpreetham
- Created: 2024-02-02T17:29:43.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-02T17:42:21.000Z (over 1 year ago)
- Last Synced: 2025-02-01T15:46:03.953Z (4 months ago)
- Topics: mathematics, number-theory
- Language: Rust
- Homepage:
- Size: 1000 Bytes
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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.
```rust
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