hypot():hypotenuse of a right-angle triangle

float hypot ( float $x , float $y )
ParameterDESCRIPTION
$xRequired : Length of first side.
$xRequired : Length of second side.
The output is length of the hypotenuse.

Example :

<?Php
echo hypot(2,3); // Output 3.605551275464
echo "<br>";
echo hypot(4,5); // Output 6.4031242374328
echo "<br>";
echo hypot(8,10); // Output is 12.806248474866
echo "<br>";
echo hypot(12,13); // Output is 17.691806012954
?>


plus2net.com




Post your comments , suggestion , error , requirements etc here .




We use cookies to improve your browsing experience. . Learn more
HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
©2000-2020 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer