Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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?
[Discipulus]: good morning nuns and monks!

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (8)
As of 2017-11-23 08:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (330 votes). Check out past polls.

    Notices?