Solved

Apples to Apples?

Posted on 2013-01-07
2
152 Views
Last Modified: 2013-01-07
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
Comment
Question by:turtleman2009
2 Comments
 
LVL 39

Accepted Solution

by:
Pratima Pharande earned 500 total points
ID: 38753653
looks correct .. no problem

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

Author Closing Comment

by:turtleman2009
ID: 38753659
Thanks
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn how to count occurrences of each item in an array.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

919 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now