Manual Pages for UNIX Darwin command on man hypot
MyWebUniversity

Manual Pages for UNIX Darwin command on man hypot

HYPOT(3) BSD Library Functions Manual HYPOT(3)

NAME

hhyyppoott - euclidean distance function

SYNOPSIS

##iinncclluuddee <>

double hhyyppoott(double x, double y); long double hhyyppoottll(long double x, long double y); float hhyyppoottff(float x, float y);

DESCRIPTION

The hhyyppoott() function computes the sqrt(x*x+y*y) without undue overflow or underflow. SSPPEECCIIAALL VVAALLUUEESS

hhyyppoott(x, y) , hhyyppoott(y, x) , and hhyyppoott(x, -y) are equivalent.

hhyyppoott(x, +-0) is equivalent to ffaabbss(x).

hhyyppoott(+-infinity, y) returns +infinity even if y is a NaN.

SEE ALSO

cabs(3), math(3), sqrt(3) STANDARDS The hhyyppoott() function conforms to ISO/IEC 9899:1999(E). 4th Berkeley Distribution January 28, 2003 4th Berkeley Distribution




Contact us      |      About us      |      Term of use      |       Copyright © 2000-2019 MyWebUniversity.com ™