summaryrefslogtreecommitdiffstats
path: root/lib/msun/man
diff options
context:
space:
mode:
authordas <das@FreeBSD.org>2008-07-31 22:41:26 +0000
committerdas <das@FreeBSD.org>2008-07-31 22:41:26 +0000
commitfea2240d10b31df0708048e117338954d65683f2 (patch)
tree9fb6bc383ad54766e5719d186bb7517c92a90c9f /lib/msun/man
parent9c7525b3ac9d147ed50fdd2bbd0728d63af7968a (diff)
downloadFreeBSD-src-fea2240d10b31df0708048e117338954d65683f2.zip
FreeBSD-src-fea2240d10b31df0708048e117338954d65683f2.tar.gz
Add implementations of acosl(), asinl(), atanl(), atan2l(),
and cargl(). Reviewed by: bde sparc64 testing resources from: remko
Diffstat (limited to 'lib/msun/man')
-rw-r--r--lib/msun/man/acos.333
-rw-r--r--lib/msun/man/asin.333
-rw-r--r--lib/msun/man/atan.331
-rw-r--r--lib/msun/man/atan2.338
4 files changed, 74 insertions, 61 deletions
diff --git a/lib/msun/man/acos.3 b/lib/msun/man/acos.3
index aa73699..b38a6e0 100644
--- a/lib/msun/man/acos.3
+++ b/lib/msun/man/acos.3
@@ -28,12 +28,13 @@
.\" from: @(#)acos.3 5.1 (Berkeley) 5/2/91
.\" $FreeBSD$
.\"
-.Dd January 14, 2005
+.Dd July 31, 2008
.Dt ACOS 3
.Os
.Sh NAME
.Nm acos ,
-.Nm acosf
+.Nm acosf ,
+.Nm acosl
.Nd arc cosine functions
.Sh LIBRARY
.Lb libm
@@ -43,23 +44,18 @@
.Fn acos "double x"
.Ft float
.Fn acosf "float x"
+.Ft long double
+.Fn acosl "long double x"
.Sh DESCRIPTION
The
-.Fn acos
-and the
-.Fn acosf
+.Fn acos ,
+.Fn acosf ,
+and
+.Fn acosl
functions compute the principal value of the arc cosine of
.Fa x .
-A domain error occurs for arguments not in the range
-.Bq -1 , +1 .
-For a discussion of error due to roundoff, see
-.Xr math 3 .
.Sh RETURN VALUES
-The
-.Fn acos
-and the
-.Fn acosf
-functions return the arc cosine in the range
+These functions return the arc cosine in the range
.Bq 0 , \*(Pi
radians.
If:
@@ -83,6 +79,9 @@ raises an invalid exception and returns an \*(Na.
.Xr tanh 3
.Sh STANDARDS
The
-.Fn acos
-function conforms to
-.St -isoC .
+.Fn acos ,
+.Fn acosf ,
+and
+.Fn acosl
+functions conform to
+.St -isoC-99 .
diff --git a/lib/msun/man/asin.3 b/lib/msun/man/asin.3
index f7e8404..d9cad73 100644
--- a/lib/msun/man/asin.3
+++ b/lib/msun/man/asin.3
@@ -28,12 +28,13 @@
.\" from: @(#)asin.3 5.1 (Berkeley) 5/2/91
.\" $FreeBSD$
.\"
-.Dd January 14, 2005
+.Dd July 31, 2008
.Dt ASIN 3
.Os
.Sh NAME
.Nm asin ,
-.Nm asinf
+.Nm asinf ,
+.Nm asinl
.Nd arc sine functions
.Sh LIBRARY
.Lb libm
@@ -43,23 +44,18 @@
.Fn asin "double x"
.Ft float
.Fn asinf "float x"
+.Ft long double
+.Fn asinl "long double x"
.Sh DESCRIPTION
The
-.Fn asin
-and the
-.Fn asinf
+.Fn asin ,
+.Fn asinf ,
+and
+.Fn asinl
functions compute the principal value of the arc sine of
.Fa x .
-A domain error occurs for arguments not in the range
-.Bq -1 , +1 .
-For a discussion of error due to roundoff, see
-.Xr math 3 .
.Sh RETURN VALUES
-The
-.Fn asin
-and the
-.Fn asinf
-functions return the arc sine in the range
+These functions return the arc sine in the range
.Bk -words
.Bq -\*(Pi/2 , +\*(Pi/2
.Ek
@@ -85,6 +81,9 @@ raises an invalid exception and returns an \*(Na.
.Xr tanh 3
.Sh STANDARDS
The
-.Fn asin
-function conforms to
-.St -isoC .
+.Fn asin ,
+.Fn asinf ,
+and
+.Fn asinl
+functions conform to
+.St -isoC-99 .
diff --git a/lib/msun/man/atan.3 b/lib/msun/man/atan.3
index 2c2bd64..ef119f1 100644
--- a/lib/msun/man/atan.3
+++ b/lib/msun/man/atan.3
@@ -28,12 +28,13 @@
.\" from: @(#)atan.3 5.1 (Berkeley) 5/2/91
.\" $FreeBSD$
.\"
-.Dd May 2, 1991
+.Dd July 31, 2008
.Dt ATAN 3
.Os
.Sh NAME
.Nm atan ,
-.Nm atanf
+.Nm atanf ,
+.Nm atanl
.Nd arc tangent functions of one variable
.Sh LIBRARY
.Lb libm
@@ -43,21 +44,18 @@
.Fn atan "double x"
.Ft float
.Fn atanf "float x"
+.Ft long double
+.Fn atanl "long double x"
.Sh DESCRIPTION
The
-.Fn atan
-and the
-.Fn atanf
+.Fn atan ,
+.Fn atanf ,
+and
+.Fn atanl
functions compute the principal value of the arc tangent of
.Fa x .
-For a discussion of error due to roundoff, see
-.Xr math 3 .
.Sh RETURN VALUES
-The
-.Fn atan
-and the
-.Fn atanf
-function returns the arc tangent in the range
+These functions return the arc tangent in the range
.Bk -words
.Bq -\*(Pi/2 , +\*(Pi/2
.Ek
@@ -75,6 +73,9 @@ radians.
.Xr tanh 3
.Sh STANDARDS
The
-.Fn atan
-function conforms to
-.St -isoC .
+.Fn atan ,
+.Fn atanf ,
+and
+.Fn atanl
+functions conform to
+.St -isoC-99 .
diff --git a/lib/msun/man/atan2.3 b/lib/msun/man/atan2.3
index dee65ae..06ac068 100644
--- a/lib/msun/man/atan2.3
+++ b/lib/msun/man/atan2.3
@@ -28,14 +28,16 @@
.\" from: @(#)atan2.3 5.1 (Berkeley) 5/2/91
.\" $FreeBSD$
.\"
-.Dd December 12, 2007
+.Dd July 31, 2008
.Dt ATAN2 3
.Os
.Sh NAME
.Nm atan2 ,
.Nm atan2f ,
+.Nm atan2l ,
.Nm carg ,
-.Nm cargf
+.Nm cargf ,
+.Nm cargl
.Nd arc tangent and complex phase angle functions
.Sh LIBRARY
.Lb libm
@@ -45,15 +47,21 @@
.Fn atan2 "double y" "double x"
.Ft float
.Fn atan2f "float y" "float x"
+.Ft long double
+.Fn atan2l "long double y" "long double x"
+.In complex.h
.Ft double
.Fn carg "double complex z"
.Ft float
.Fn cargf "float complex z"
+.Ft long double
+.Fn cargl "long double complex z"
.Sh DESCRIPTION
The
-.Fn atan2
-and the
-.Fn atan2f
+.Fn atan2 ,
+.Fn atan2f ,
+and
+.Fn atan2l
functions compute the principal value of the arc tangent of
.Fa y/ Ns Ar x ,
using the signs of both arguments to determine the quadrant of
@@ -66,9 +74,10 @@ the return value.
.\}
.Pp
The
-.Fn carg
+.Fn carg ,
+.Fn cargf ,
and
-.Fn cargf
+.Fn cargl
functions compute the complex argument (or phase angle) of
.Fa z .
The complex argument is the number \*(Th such that
@@ -80,12 +89,15 @@ The call
is equivalent to
.Li atan2(cimag(z), creal(z)) ,
and similarly for
-.Fn cargf .
+.Fn cargf
+and
+.Fn cargl .
.Sh RETURN VALUES
The
-.Fn atan2
-and the
-.Fn atan2f
+.Fn atan2 ,
+.Fn atan2f ,
+and
+.Fn atan2l
functions, if successful,
return the arc tangent of
.Fa y/ Ns Ar x
@@ -210,8 +222,10 @@ r := \(sr(x\(**x+y\(**y);\0\0if r = 0 then x := copysign(1,x);
The
.Fn atan2 ,
.Fn atan2f ,
+.Fn atan2l ,
.Fn carg ,
+.Fn cargf ,
and
-.Fn cargf
+.Fn cargl
functions conform to
.St -isoC-99 .
OpenPOWER on IntegriCloud