downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
search for in the  

<hexdecis_finite>
Last updated: Thu, 26 Jun 2008

hypot

(PHP 4 >= 4.0.7, PHP 5)

hypot — Calculate the length of the hypotenuse of a right-angle triangle

Description

float hypot ( float $x , float $y )

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).

Parameters

x

Length of first side

y

Length of second side

Return Values

Calculated length of the hypotenuse



add a noteadd a note User Contributed Notes
Calculate the length of the hypotenuse of a right-angle triangle
There are no user contributed notes for this page.




<hexdecis_finite>
Last updated: Thu, 26 Jun 2008
show source | credits | sitemap | contact | advertising | mirror sites
Copyright © 2001-2005 The PHP Group
All rights reserved.
This unofficial mirror is operated at: http://phpbuilder.com/
Last updated: Tue Nov 1 20:20:59 2005 EST
Columns / Articles | Tips / Quickies | News | News Linking and RSS Feeds | Shared Code Library
Mail Archives | Support / Discussion Forums | Get Started! Links | Contribute! | Docs