in reply to Re^2: exp() bignum issue
in thread exp() bignum issue
You can, of course, additionally do the inversion in one step:# 53 bit precision, rounding to nearest C:\>perl -MMath::MPFR -le "print exp(Math::MPFR->new('15863.8668285308 +'))" 3.8888865970333893e6889 # 64 bit precision, rounding to nearest C:\>perl -MMath::MPFR=":mpfr" -le "Rmpfr_set_default_prec(64);print ex +p(Math::MPFR->new('15863.8668285308'))" 3.88888659703546523928e6889 # 113 bit precision, rounding to nearest C:\>perl -MMath::MPFR=":mpfr" -le "Rmpfr_set_default_prec(113);print e +xp(Math::MPFR->new('15863.8668285308'))" 3.88888659703546395686515111487812115e6889
NOTE: Math::MPFR requires both the gmp and mpfr libraries.C:\>perl -MMath::MPFR -le "print 1 / exp(Math::MPFR->new('15863.866828 +5308'))" 2.5714300868604479e-6890
|
|---|