up | Inhaltsverzeichniss | Kommentar

Manual page for HYPOT(3M)

hypot - Euclidean distance

SYNOPSIS

#include <math.h>

double hypot(x, y) double x, y;

DESCRIPTION

hypot() returns

sqrt(x*x + y*y) ,

taking precautions against unwarranted IEEE exceptions. On IEEE overflow, hypot() may also set errno and call matherr.3m hypot(±\(if, y) is +\(if for any y, even a NaN, and is exceptional only for a signaling NaN.

hypot(x,y) and atan2(y,x) (see trig.3m convert rectangular coordinates (x,y) to polar (r,\(*h); hypot() computes r, the modulus or radius.

SEE ALSO

trig.3m matherr.3m


index | Inhaltsverzeichniss | Kommentar

Created by unroff & hp-tools. © somebody (See intro for details). All Rights Reserved. Last modified 11/5/97