Link to home
Start Free TrialLog in
Avatar of masheik
masheikFlag for India

asked on

how to calculate power term in perl

Hi,

   I have to calculate a value
 
   say, (a-x*p)^(2/x*p) ,how to use this formula in  perl?

   if you give me a example code or link it is very useful

   thanks-
ASKER CERTIFIED SOLUTION
Avatar of ozo
ozo
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Just use the ** operator

$answer =  ($a-$x*$p)**(2/$x*$p);
Avatar of masheik

ASKER

thanks