View | Details | Raw Unified | Return to bug 82654 | Differences between
and this patch

Collapse All | Expand All

(-)hypot.3 (-5 / +13 lines)
Lines 38-45 Link Here
38
.Sh NAME
38
.Sh NAME
39
.Nm hypot ,
39
.Nm hypot ,
40
.Nm hypotf ,
40
.Nm hypotf ,
41
.Nm hypotl ,
41
.Nm cabs ,
42
.Nm cabs ,
42
.Nm cabsf
43
.Nm cabsf ,
44
.Nm cabsl
43
.Nd Euclidean distance and complex absolute value functions
45
.Nd Euclidean distance and complex absolute value functions
44
.Sh LIBRARY
46
.Sh LIBRARY
45
.Lb libm
47
.Lb libm
Lines 49-73 Link Here
49
.Fn hypot "double x" "double y"
51
.Fn hypot "double x" "double y"
50
.Ft float
52
.Ft float
51
.Fn hypotf "float x" "float y"
53
.Fn hypotf "float x" "float y"
54
.Ft "long double"
55
.Fn hypotl "long double x" "long double y"
52
.In complex.h
56
.In complex.h
53
.Ft double
57
.Ft double
54
.Fn cabs "double complex z"
58
.Fn cabs "double complex z"
55
.Ft float
59
.Ft float
56
.Fn cabsf "float complex z"
60
.Fn cabsf "float complex z"
61
.Ft "long double"
62
.Fn cabsl "long double complex z"
57
.Sh DESCRIPTION
63
.Sh DESCRIPTION
58
The
64
The
59
.Fn hypot
65
.Fn hypot ,
66
.Fn hypotf ,
60
and
67
and
61
.Fn hypotf
68
.Fn hypotl
62
functions
69
functions
63
compute the
70
compute the
64
sqrt(x*x+y*y)
71
sqrt(x*x+y*y)
65
in such a way that underflow will not happen, and overflow
72
in such a way that underflow will not happen, and overflow
66
occurs only if the final result deserves it.
73
occurs only if the final result deserves it.
67
The
74
The
68
.Fn cabs
75
.Fn cabs ,
76
.Fn cabsf ,
69
and
77
and
70
.Fn cabsf
78
.Fn cabsl
71
functions compute the complex absolute value of
79
functions compute the complex absolute value of
72
.Fa z .
80
.Fa z .
73
.Pp
81
.Pp

Return to bug 82654