Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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 browsing the Monastery: (9)
As of 2015-05-05 22:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    In my home, the TV remote control is ...









    Results (127 votes), past polls