hypot

It calculate the length of the hypotenuse of a right-angle triangle

Example

<?php
echo hypot(1,7);
?>

Output

7.0710678118655

Share