SYNOPSIS
#include <math.h>
double hypot(double x, double y)
float hypotf(float x, float y)
double cabs(struct complex { double x;; double y; } z)
float cabsf(struct complex { float x;; float y; } z)
DESCRIPTION
The
hypot(Infinity, v) = hypot(v, Infinity) = +Infinity for all v, including NaN.
The
hypot(z.x, z.y)
The
PARAMETERS
- x
-
Is the length of one of the sides of the triangle.
- y
-
Is the length of another of the sides of the triangle.
- z
-
Is a complex number.
RETURN VALUES
If the correct value would cause overflow, then:
-
In IEEE mode, HUGE_VAL is returned.
-
In POSIX mode, HUGE_VAL is returned and errno is to ERANGE.
-
In SVID mode, HUGE is returned and
matherr() is called. -
In XOPEN mode, HUGE_VAL is returned and
matherr() is called.
If the result underflows, 0 is returned.
If x or y is NaN, NaN is returned.
CONFORMANCE
MULTITHREAD SAFETY LEVEL
MT-Safe.
PORTING ISSUES
None.
AVAILABILITY
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
SEE ALSO
PTC MKS Toolkit 10.5 Documentation Build 40.