array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'tr', ), 'this' => array ( 0 => 'function.hypot.php', 1 => 'hypot', ), 'up' => array ( 0 => 'ref.math.php', 1 => 'Math İşlevleri', ), 'prev' => array ( 0 => 'function.hexdec.php', 1 => 'hexdec', ), 'next' => array ( 0 => 'function.intdiv.php', 1 => 'intdiv', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/math/functions/hypot.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 4 >= 4.1.0, PHP 5, PHP 7, PHP 8)
hypot — Calculate the length of the hypotenuse of a right-angle triangle
hypot() returns the length of the hypotenuse of a
right-angle triangle with sides of length x
and
y
, or the distance of the point
(x
, y
) from the origin.
This is equivalent to sqrt($x*$x + $y*$y)
.
x
Length of first side
y
Length of second side
Calculated length of the hypotenuse