Library for polynomial calculus in Java? [closed]
-
08-06-2021 - |
Question
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.
Solution
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
OTHER TIPS
The following library could be of interest, if one would be interested in a more CAS like approach to polynomials in Java:
Java Algebra System (JAS) Project
http://krum.rz.uni-mannheim.de/jas/
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow