Jump to content

Archived

This topic is now archived and is closed to further replies.

stebut08

Pow Error

Recommended Posts

Hi,

 

I have an issue with pow() function. The formula i'm trying to solve is pow(0.4723*7.73,0.8015), the result returned is 2.82332938169. However, it should return 2.43272943501. I have tested on scientific calculator and the correct result is 2.43272943501.

 

I tried to solve the formula with exponent of 1 rather than 0.8015 to see if this is causing the issue. I was able to return the correct result using 1, the answer returned matched scientific calculator.

 

I'm unsure why the exponent value 0.8015 is not working.

 

Thank you in advance for your help and support.

 

Kind regards,

Share this post


Link to post
Share on other sites

Google seems to agree with PHP: 2.82332938169

 

I think you are either entering the formula incorrectly in your calculator, or you are translating it to PHP incorrectly.

 

The answer you are expecting to get would be given by:

0.4723*pow(7.73, 0.8015);

Share this post


Link to post
Share on other sites

Hi Kicken,

 

Thanks for your reply, much appreicated. Your proposed solution worked. Thanks.

Share this post


Link to post
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.