Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Efficiently working with huge exponents

by RichardK (Parson)
on Mar 20, 2015 at 12:46 UTC ( [id://1120739]=note: print w/replies, xml ) Need Help??


in reply to Efficiently working with huge exponents

Math::BigFloat can swap the library it uses, have you tried 'GMP' ?

use Math::BigFloat lib => 'GMP';

AFIACT that calls Math::BigInt::GMP so you'll need to install that too.

use Math::BigInt; # or make it faster with huge numbers: install (optional) # Math::BigInt::GMP and always use (it will fall back to # pure Perl if the GMP library is not installed): # (See also the L<MATH LIBRARY> section!) # will warn if Math::BigInt::GMP cannot be found use Math::BigInt lib => 'GMP';

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1120739]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (2)
As of 2024-04-20 03:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found