Jump to: navigation, search

Php hypot

From w3cyberlearnings

Contents

PHP function hypot

This function computes the hypotenuse of a right-angle triangle.

Syntax hypot

  • X is length of first side.
  • Y is length of second side
hypot(X,Y);

Example 1

<?php

echo hypot(3,4);
echo "<br/>";
echo sqrt(3*3+4*4);
?>

Output

5
5


Related Links


Navigation
Web
SQL
MISC
References