are you looking for the ** operator?

perldoc perlop

     Exponentiation

     Binary "**" is the exponentiation operator.  It binds even
     more tightly than unary minus, so -2**4 is -(2**4), not
     (-2)**4. (This is implemented using C's pow(3) function,
     which actually works on doubles internally.)


> -----Original Message-----
> From: Prachi Shroff [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 22, 2002 9:53 AM
> To: [EMAIL PROTECTED]
> Subject: power of
> 
> 
> Hi!
> 
> This may sound as a very stupid question, but here it comes 
> anyways. Has 
> anybody come across a function that wold calculate the power 
> of a number, 
> like the pow function in C. Simply, x to the power of y.
> I know of 2 options, one an inefficient iterative 
> multiplication, but I have 
> real numbers as power, so that is ruled out. Another is to do 
> something like 
> this: exp(y*log x), but is an approximation. So, please do 
> let me know if 
> there is any other more accurate way of doing it.
> 
> Thanks,
> Prachi.
> 
> 
> 
> _________________________________________________________________
> Join the world's largest e-mail service with MSN Hotmail. 
> http://www.hotmail.com
> 
> 
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

----------------------------------------------------------------------------
--------------------
The views and opinions expressed in this email message are the sender's
own, and do not necessarily represent the views and opinions of Summit
Systems Inc.


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to