note 14885 added to function.sqrt.php

From: Date: Sun, 19 Aug 2001 23:14:50 +0000
Subject: note 14885 added to function.sqrt.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-16898@lists.php.net to get a copy of this message
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. http://www.php.net/manual/en/function.sqrt.php

« previous php.notes (#16898) next »