summaryrefslogtreecommitdiffstats
path: root/lib/libm/man/cos.3
diff options
context:
space:
mode:
authormartynas <martynas@openbsd.org>2008-12-12 00:10:26 +0000
committermartynas <martynas@openbsd.org>2008-12-12 00:10:26 +0000
commit854ac34ef9c3585daf16ef29bb586bb2db3b55ec (patch)
tree70f0222604c44a6c1584c2fdca81cba5e9f670ae /lib/libm/man/cos.3
parent- last snprintf -> bsnprintf (diff)
downloadwireguard-openbsd-854ac34ef9c3585daf16ef29bb586bb2db3b55ec.tar.xz
wireguard-openbsd-854ac34ef9c3585daf16ef29bb586bb2db3b55ec.zip
document and mlink long double functions. ok jmc@
Diffstat (limited to 'lib/libm/man/cos.3')
-rw-r--r--lib/libm/man/cos.318
1 files changed, 13 insertions, 5 deletions
diff --git a/lib/libm/man/cos.3 b/lib/libm/man/cos.3
index 83f9fe22694..74431c4a700 100644
--- a/lib/libm/man/cos.3
+++ b/lib/libm/man/cos.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: cos.3,v 1.11 2007/05/31 19:19:35 jmc Exp $
+.\" $OpenBSD: cos.3,v 1.12 2008/12/12 00:10:26 martynas Exp $
.\" Copyright (c) 1991 The Regents of the University of California.
.\" All rights reserved.
.\"
@@ -28,12 +28,13 @@
.\"
.\" from: @(#)cos.3 5.1 (Berkeley) 5/2/91
.\"
-.Dd $Mdocdate: May 31 2007 $
+.Dd $Mdocdate: December 12 2008 $
.Dt COS 3
.Os
.Sh NAME
.Nm cos ,
-.Nm cosf
+.Nm cosf ,
+.Nm cosl
.Nd cosine functions
.Sh SYNOPSIS
.Fd #include <math.h>
@@ -41,6 +42,8 @@
.Fn cos "double x"
.Ft float
.Fn cosf "float x"
+.Ft long double
+.Fn cosl "long double x"
.Sh DESCRIPTION
The
.Fn cos
@@ -51,15 +54,20 @@ The
.Fn cosf
function is a single precision version of
.Fn cos .
+The
+.Fn cosl
+function is an extended precision version of
+.Fn cos .
A large magnitude argument may yield a result with little or no
significance.
For a discussion of error due to roundoff, see
.Xr math 3 .
.Sh RETURN VALUES
The
-.Fn cos
-and
+.Fn cos ,
.Fn cosf
+and
+.Fn cosl
functions return the cosine value.
.Sh SEE ALSO
.Xr acos 3 ,