Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: [OT] Function to do x**y for |y|<1 w/o ** operator.

by BrowserUk (Pope)
on Feb 19, 2013 at 19:06 UTC ( #1019646=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    print exp( log( 100 ) *.5 );;
    10
    
    print exp( log( 1000 ) *.3333333333333333333333 );;
    10
    
  2. or download this
    sub pow{ exp( log( $_[0] ) * $_[1] ) };;
    
    ...
    18 : 12345.00000000000500000
    19 : 12344.99999999998400000
    20 : 12345.00000000000500000
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2014-10-21 02:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (95 votes), past polls