in reply to Re: Efficiently working with huge exponents
in thread Efficiently working with huge exponents
Yeah, that's the same type of thing that Math::BigApprox makes much easier:
$ time perl -MMath::BigApprox=c -le'print c(2)**1024000' 5.194693e+308254 real 0m0.021s user 0m0.012s sys 0m0.004s
And it makes a good guess at how many decimal places to show as well.
- tye
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Efficiently working with huge exponents (yeah)
by Laurent_R (Canon) on Mar 20, 2015 at 21:54 UTC | |
by tye (Sage) on Mar 20, 2015 at 22:48 UTC | |
Re^3: Efficiently working with huge exponents (yeah)
by wanna_code_perl (Friar) on Mar 21, 2015 at 13:55 UTC | |
by syphilis (Archbishop) on Mar 22, 2015 at 01:14 UTC | |
by wanna_code_perl (Friar) on Mar 22, 2015 at 13:04 UTC |