问题
I am looking for a math library for scientific computing to use in Java / Scala. Especially I need complete elliptic integrals und modified Bessel functions. I would be nice if it is open source, but I guess I will have to take whatever is out there. A scipy (python lib for scientific computing) replacment would be great :-)
回答1:
As far as I'm aware, the most widely used Java math libraries are:
- The Apache Commons Math library, and
- The Colt project (developed by CERN)
You'll have to investigate their respective APIs though to determine if they provide exactly the functionality you require.
回答2:
I know that the GNU Scientific Library contains both elliptic integrals and Bessel functions of many kinds. Unfortunately, good mathematics libraries are hard to come by; your best bet may be to wrap the GSL using JNI (or JNA if you can get it to work).
If you really must have pure Java/Scala functions, I guess you could translate the portions of the library you need. It would be a lot of work, but it is GPLed code at least.
来源:https://stackoverflow.com/questions/4764989/java-scala-math-library-with-elliptic-integrals-and-bessel-functions