4

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.

BlueRaja - Danny Pflughoeft
  • 84,206
  • 33
  • 197
  • 283
Alexandru Chirila
  • 2,274
  • 5
  • 29
  • 40

2 Answers2

9

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

Jean Logeart
  • 52,687
  • 11
  • 83
  • 118
0

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/