Commit | Line | Data |
---|---|---|
e6817382 BJ |
1 | .TH HYPOT 3M |
2 | .SH NAME | |
3 | hypot, cabs \- euclidean distance | |
4 | .SH SYNOPSIS | |
5 | .B #include <math.h> | |
6 | .PP | |
7 | .B double hypot(x, y) | |
8 | .br | |
9 | .B double x, y; | |
10 | .PP | |
11 | .B double cabs(z) | |
12 | .br | |
13 | .B struct { double x, y;} z; | |
14 | .SH DESCRIPTION | |
15 | .I Hypot | |
16 | and | |
17 | .I cabs | |
18 | return | |
19 | .PP | |
20 | .IP "" 15n | |
21 | sqrt(x*x + y*y), | |
22 | .LP | |
23 | taking precautions against unwarranted overflows. | |
24 | .SH SEE ALSO | |
25 | exp(3) for | |
26 | .I sqrt |