A Java project for performing numerical interpolations, featuring implementations of Lagrangian polynomial interpolation, linear spline interpolation, and cubic spline interpolation.
- Polynomial: A complete Polynomial management module.
- Lagrangian Polynomial Interpolation: Estimate values between known data points using polynomials.
- Linear Spline Interpolation: Piecewise linear approach ensuring continuity.
- Cubic Spline Interpolation: Piecewise cubic polynomial approach providing smoother transitions.
- Integration Error: Provide a method to evaluate interpolations error.
- Java Development Kit (JDK) installed on your system. (version >= 17)
Clone this repository:
git clone https://github.com/igorgreenigm/interpolation.gitNavigate to the project directory:
cd interpolationYou can compile directly the Java files:
javac src/*.javaOr, Open project with intelliJ IDE or directly import classes in your own project.
To use this library in your project, include the provided classes. Detailed usage instructions and examples are available in the code comments.
The function
Error is computed using the formula
-
$f$ is the function to interpolate. -
$p$ the interpolation polynomial (or set of polynomial for splines). -
$[a, b]$ is the interval of distibuted samples.
This project is licensed under the MIT License - see the LICENSE file for details.


