[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 160
  • Last Modified:

Apples to Apples?

Are these two formulas the same? I have never used exponents in programming before and I'm not sure if I did it correct.


Original:
newcal=[(cwaist+1) x meters^3.2] x 40


PHP version:
$newcal=(($cwaist +1) * pow($meters, 3.2)) * 40;
0
turtleman2009
Asked:
turtleman2009
1 Solution
 
Pratima PharandeCommented:
looks correct .. no problem

you can get more details about pow()
http://php.net/manual/en/function.pow.php
0
 
turtleman2009Author Commented:
Thanks
0

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now