Jump to content

Pow Error


Go to solution Solved by stebut08,

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,

Edited by stebut08
Link to comment
https://forums.phpfreaks.com/topic/280575-pow-error/
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);
Link to comment
https://forums.phpfreaks.com/topic/280575-pow-error/#findComment-1442434
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.