pRaNaV has asked for the wisdom of the Perl Monks concerning the following question:
Hello, is there a module in perl wherein I can do log(x + y) operation without using a high precision library(e.g. Math::GMPf/MPFR)? Only thing known to me is log(x) and log(y). Base of the logarithm is an arbitrary float (> 1). Basically the antilog operation is to be avoided to save precision. Thanks!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Add numbers in log domain
by salva (Canon) on Jun 04, 2012 at 11:57 UTC | |
by BrowserUk (Patriarch) on Jun 04, 2012 at 12:47 UTC | |
by salva (Canon) on Jun 04, 2012 at 12:53 UTC | |
by ambrus (Abbot) on Jun 04, 2012 at 12:34 UTC | |
by pRaNaV (Novice) on Jun 05, 2012 at 07:20 UTC | |
|
Re: Add numbers in log domain
by roboticus (Chancellor) on Jun 04, 2012 at 10:38 UTC | |
by BrowserUk (Patriarch) on Jun 04, 2012 at 11:32 UTC | |
by pRaNaV (Novice) on Jun 05, 2012 at 05:59 UTC |