note 14885 deleted from function.sqrt by nlopess
| From: | nlopess@php.net | Date: | Sat, 09 Oct 2004 09:01:11 +0000 |
| Subject: | note 14885 deleted from function.sqrt by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-78215@lists.php.net to get a copy of this message | ||
Note Submitter: office at universalmetropolis dot com
----
as there are no given examples and i have spent all day working on mathematic functions, here is
some trigonometry:
Say we are looking for the hypotenuse of a right-angled triangle and know two of the lengths.
$side_a = 4;
$side_b = 7;
// square each side, then add the total
$verybignumber = ($side_a*$side_a)+($side_b*$side_b);
// now we find the square root using the SQRT function
$hypotenuse = sqrt($verybignumber);
print $hypotenuse;
voila.