It is not a precision issue. R and commons-math use different algorithms
with the same underlying numerical implementation.
It is even an open question which result is better. R has lots of
credibility, but I have found cases where it lacked precision (and I coded
up a patch that was accepted).
Unbounded precision integers and rationals are very useful, but not usually
for large scale numerical programming. Except in a very few cases, if you
need more than 17 digits of precision, you have other very serious problems
that precision won't help.
On Fri, Feb 12, 2010 at 1:40 AM, Andy Turner wrote:
> Interesting that this is a precision issue. I'm not surprised depending on
> what you are doing, double precision may not be enough. It depends a lot on
> how the calculations are broken into smaller parts. BigDecimal is
> fantastically useful...
>
--
Ted Dunning, CTO
DeepDyve