diff options
author | Martynas Venckus <martynas@cvs.openbsd.org> | 2008-07-29 21:57:14 +0000 |
---|---|---|
committer | Martynas Venckus <martynas@cvs.openbsd.org> | 2008-07-29 21:57:14 +0000 |
commit | f81033481c3cce2cced8af2b6972e7e9fdc8e6a2 (patch) | |
tree | 39fe0c7925d9931100a2c20b8add1e39414eedc4 /lib/libm/man | |
parent | a3961b22d8c41566431b649a17e4b6b9cf7b1258 (diff) |
describe exp2, exp2f and mlink them
Diffstat (limited to 'lib/libm/man')
-rw-r--r-- | lib/libm/man/exp.3 | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/lib/libm/man/exp.3 b/lib/libm/man/exp.3 index 56860504c1e..24490abd700 100644 --- a/lib/libm/man/exp.3 +++ b/lib/libm/man/exp.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: exp.3,v 1.17 2007/05/31 19:19:35 jmc Exp $ +.\" $OpenBSD: exp.3,v 1.18 2008/07/29 21:57:13 martynas Exp $ .\" .\" Copyright (c) 1985, 1991 Regents of the University of California. .\" All rights reserved. @@ -29,12 +29,14 @@ .\" .\" from: @(#)exp.3 6.12 (Berkeley) 7/31/91 .\" -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: July 29 2008 $ .Dt EXP 3 .Os .Sh NAME .Nm exp , .Nm expf , +.Nm exp2 , +.Nm exp2f , .Nm expm1 , .Nm expm1f , .Nm log , @@ -53,6 +55,10 @@ .Ft float .Fn expf "float x" .Ft double +.Fn exp2 "double x" +.Ft float +.Fn exp2f "float x" +.Ft double .Fn expm1 "double x" .Ft float .Fn expm1f "float x" @@ -75,7 +81,9 @@ .Sh DESCRIPTION The .Fn exp -function computes the exponential value of the given argument +function computes the base +.Ms e +exponential value of the given argument .Fa x . The .Fn expf @@ -83,6 +91,15 @@ function is a single precision version of .Fn exp . .Pp The +.Fn exp2 +function computes the base 2 exponential of the given argument +.Fa x . +The +.Fn exp2f +function is a single precision version of +.Fn exp2 . +.Pp +The .Fn expm1 function computes the value exp(x)\-1 accurately even for tiny argument .Fa x . |