Are there any (preferably open source) library for Java that allows one to do calculus with polynomial e.g. addition, multiplying, dividing by constans etc. ?
Also if it would be capable to interpolate several 2D points in a polynomial with Lagrange polynomial interpolation, it will be a plus.
You might want to have a look at the Apache Commons Mathematics Library.
Polynomials are handled with PolynomialFunction and you can do a Lagrange interpolation with PolynomialFunctionLagrangeForm
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With