Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Help w/ Code Optimization

by Zaxo (Archbishop)
on Dec 27, 2001 at 01:11 UTC ( #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? | Other CB clients
Other Users?
Others studying the Monastery: (2)
As of 2023-03-31 03:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (74 votes). Check out past polls.

    Notices?