unixdev.net


Switch to SpeakEasy.net DSL

The Modular Manual Browser

Home Page
Manual: (SunOS-4.1.3)
Page:
Section:
Apropos / Subsearch:
optional field

HYPOT(3M)                                                            HYPOT(3M)



NAME
       hypot - Euclidean distance

SYNOPSIS
       #include <&lt;math.h>&gt;

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

DESCRIPTION
       hypot() returns

              sqrt(x*x + y*y) ,

       taking  precautions against unwarranted IEEE exceptions.  On IEEE over-
       flow, hypot() may also set errno and call matherr(3M).  hypot(+-, y) is
       + 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 coordi-
       nates (x,y) to polar (r,); hypot() computes r, the modulus or radius.

SEE ALSO
       trig(3M), matherr(3M)



                               22 November 1987                      HYPOT(3M)