summaryrefslogtreecommitdiffstats
path: root/lib/msun
diff options
context:
space:
mode:
authorstefanf <stefanf@FreeBSD.org>2004-05-06 13:11:18 +0000
committerstefanf <stefanf@FreeBSD.org>2004-05-06 13:11:18 +0000
commit5cf96830e07444f126722e8aafbaaa1e1dba9c37 (patch)
treeb2fa34dcfc0b76d0465530d25480a1f88bf9d183 /lib/msun
parent3edaa65c3a15b7afe72a94d903eeb8b2a3792191 (diff)
downloadFreeBSD-src-5cf96830e07444f126722e8aafbaaa1e1dba9c37.zip
FreeBSD-src-5cf96830e07444f126722e8aafbaaa1e1dba9c37.tar.gz
The prototypes for cabs() and cabsf() are in <complex.h>. Fix their arguments'
types and describe them briefly. Reviewed by: ru, bde Approved by: das (mentor)
Diffstat (limited to 'lib/msun')
-rw-r--r--lib/msun/man/hypot.319
1 files changed, 11 insertions, 8 deletions
diff --git a/lib/msun/man/hypot.3 b/lib/msun/man/hypot.3
index f7ae5c07..b866940 100644
--- a/lib/msun/man/hypot.3
+++ b/lib/msun/man/hypot.3
@@ -49,24 +49,27 @@
.Fn hypot "double x" "double y"
.Ft float
.Fn hypotf "float x" "float y"
-.Vt struct {double x, y;} z ;
+.In complex.h
.Ft double
-.Fn cabs z
-.Vt struct {float x, y;} z ;
+.Fn cabs "double complex z"
.Ft float
-.Fn cabsf z
+.Fn cabsf "float complex z"
.Sh DESCRIPTION
The
-.Fn hypot ,
-.Fn hypotf ,
-.Fn cabs
+.Fn hypot
and
-.Fn cabsf
+.Fn hypotf
functions
compute the
sqrt(x*x+y*y)
in such a way that underflow will not happen, and overflow
occurs only if the final result deserves it.
+The
+.Fn cabs
+and
+.Fn cabsf
+functions compute the complex absolute value of
+.Ar z .
.Pp
.Fn hypot "\*(If" "v"
=
OpenPOWER on IntegriCloud