Search wiring.org.co:

Reference for Wiring version 1.0 Build 0100+ If you have a previous version, use the reference included with your software. If see any errors or have any comments, let us know.

Name |

### hypot()

Description | The hypot() function returns sqrt(x*x + y*y). This is the length of the hypotenuse of a right triangle with sides of length x and y, or the distance of the point (x, y) from the origin. Using this function instead of the direct formula is wise, since the error is much smaller. No underflow with small x and y. No overflow if result is in range.
Syntax |
    hypot(x, y);
Parameters |

x | int or float: x-coordinate of the point
y | int or float: y-coordinate of the point

Returns | float
Usage | Application
Related | acos() asin() atan() atan2() cos()
cosh()
hypot()
sin()
sinh()
tan()
tanh()
radians()
degrees()

Updated on July 07, 2011 11:08:21pm PDT