unixdev.net


Switch to SpeakEasy.net DSL

The Modular Manual Browser

Home Page
Manual: (4.2BSD)
Page:
Section:
Apropos / Subsearch:
optional field

HYPOT(3M)                                                            HYPOT(3M)



NAME
       hypot, cabs - Euclidean distance

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

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

       double cabs(z)
       struct { double x, y;} z;

DESCRIPTION
       Hypot and cabs return

              sqrt(x*x + y*y),

       taking precautions against unwarranted overflows.

SEE ALSO
       exp(3M) for sqrt



                                19 January 1983                      HYPOT(3M)