hypot() \ Language (API) \ Wiring ALPHA 1.0
Author: Hernando Barragán
Description: Wiring is an electronic sketchbook and hardware electronics for developing ideas. It is a context for learning fundamentals of computer programming and prototyping with electronics within the context of the electronic arts.
Keywords: Wiring, Processing, Interactive Media, Electronic Arts, Programming, C, C++, Hernando Barragán

Search wiring.org.co:

Reference for Wiring version 0024+. If you have a previous version, use the reference included with your software. If you 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 January 11, 2010 09:41:56pm PST