Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Help w/ Code Optimization

by Zaxo (Archbishop)
on Dec 27, 2001 at 01:11 UTC ( [id://134484]=note: print w/replies, xml ) Need Help??


in reply to Help w/ Code Optimization

You can use the C library's pow() function, so long as your numbers don't need Math::BigFloat treatment:.

$ perl -MPOSIX=pow -e 'print pow(500000,1/5),$/' 13.7972966146122
Very fast.

After Compline,
Zaxo

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2024-04-23 14:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found