Manpage of HYPOT
HYPOT
Section: NEWLIB (3)
Updated: 2005 Feb 23
Index
Return to Main Contents
NAME
1.18 `hypot', `hypotf'--distance from origin
SYNOPSIS
#include <math.h>
double hypot(double X, double Y);
float hypotf(float X, float Y);
DESCRIPTION
`hypot' calculates the Euclidean distance `sqrt(X*X + Y*Y)' between the
origin (0,0) and a point represented by the Cartesian coordinates
(X,Y). `hypotf' differs only in the type of its arguments and result.
RETURNS
Normally, the distance value is returned. On overflow, `hypot' returns
`HUGE_VAL' and sets `errno' to `ERANGE'.
You can change the error treatment with `matherr'.
PORTABILITY
`hypot' and `hypotf' are not ANSI C.
SEE ALSO
hypot
is part of the
libm
library.
The full documentation for
libm
is maintained as a Texinfo manual. If
info
and
libm
are properly installed at your site, the command
-
info libm
will give you access to the complete manual.
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- RETURNS
-
- PORTABILITY
-
- SEE ALSO
-
This document was created by
man2html,
using the manual pages.
Time: 21:25:18 GMT, May 16, 2005
www.fiveanddime.net