math formula problem
Moderator: General Moderators
math formula problem
i fixed the problem... thanks.
Last edited by deras on Sun Nov 23, 2003 4:00 am, edited 1 time in total.
- Johnm
- Forum Contributor
- Posts: 344
- Joined: Mon May 13, 2002 12:05 pm
- Location: Michigan, USA
- Contact:
First thing you need to do is straighten this out:
(2 * 2 + 3 * 3 - 2 * 2 * 3 ) = 114 is not the same as
(((2 * 2) + ((3 * 3) - 2)) * (2 * 3)) = 66 is not the same as
(((2 * 2) + 3) * (3 - 2) * (2 * 3)) = 42 and so on...
John M
for example:$distance=sqrt($level1*$level1+$level2*$level2-2*$level1*$level2*cos($enclosed_radians));
(2 * 2 + 3 * 3 - 2 * 2 * 3 ) = 114 is not the same as
(((2 * 2) + ((3 * 3) - 2)) * (2 * 3)) = 66 is not the same as
(((2 * 2) + 3) * (3 - 2) * (2 * 3)) = 42 and so on...
John M