I am looking for a Java library to calculate gamma, beta, erf, bessel special functions (and some related) for including into our own formula parser. Numeric accuracy is the main priority - it's a scientific program. And it must be open-source and free for commercial usage (like Apache and BSD licenses).
I supposed that I would quickly find come 'classical', 'reference' implementation like JAMA library is for matrix operations but I cannot find that so far. We only need special function evaluation and don't need any additional library features.
The first I found is Apache Common Math but I see a terrible accuracy for beta function: http://commons.apache.org/proper/commons-math/userguide/special.html.
Then I found Colt. It seems to be good but I'm not sure that it was properly tested by developers and users (some rarely used code may be copied from somewhere with mistakes, etc.)
Any suggestions will be appreciated.
First of all: Don't be deceived by the homemade look of the web page and the old release date of the Colt library (as well as the JET and JAS libraries that build on it). It has been used in endless research projects and the code has been verified by hundreds of very talented people.
Of course, if the credibility of your own product is at stake you should not just take my word for it. Here are two ideas how you could get a feel the correctness yourself:
If you really don't want to use Colt (which I guess was your question), I suggest porting the C/C++ code from the numerical recipes book (http://www.nrbook.com) yourself. There normally isn't too much adoption necessary, but you still need to think about how you want to test it.
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