Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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 studying the Monastery: (18)
As of 2015-07-30 20:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (273 votes), past polls