|
|
| Perl: the Markov chain saw | |
| PerlMonks |
Re^2: Add numbers in log domainby ambrus (Abbot) |
| on Jun 04, 2012 at 12:34 UTC ( #974282=note: print w/ replies, xml ) | Need Help?? |
|
Yes, something like that should work. Take the Math::Libm module, and use the expm1 and log1p functions for this. I won't figure out the correct formula now. Update 2012-06-10: though this won't help OP, future people who stumble this question by searching might want to look at the Math::BigApprox module.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||