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 | |
parent | a3961b22d8c41566431b649a17e4b6b9cf7b1258 (diff) |
describe exp2, exp2f and mlink them
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libm/Makefile | 6 | ||||
-rw-r--r-- | lib/libm/man/exp.3 | 23 |
2 files changed, 24 insertions, 5 deletions
diff --git a/lib/libm/Makefile b/lib/libm/Makefile index 7206c08eec4..4e1469b3f8a 100644 --- a/lib/libm/Makefile +++ b/lib/libm/Makefile @@ -1,5 +1,5 @@ # $NetBSD: Makefile,v 1.28 1995/11/20 22:06:19 jtc Exp $ -# $OpenBSD: Makefile,v 1.50 2008/07/29 18:38:21 martynas Exp $ +# $OpenBSD: Makefile,v 1.51 2008/07/29 21:57:13 martynas Exp $ # # @(#)Makefile 5.1beta 93/09/24 # @@ -170,7 +170,8 @@ MAN+= acos.3 acosh.3 asin.3 asinh.3 atan.3 atan2.3 atanh.3 ceil.3 \ sin.3 sinh.3 sqrt.3 tan.3 tanh.3 trunc.3 MLINKS+=erf.3 erfc.3 -MLINKS+=exp.3 expm1.3 exp.3 log.3 exp.3 log10.3 exp.3 log1p.3 exp.3 pow.3 +MLINKS+=exp.3 exp2.3 exp.3 expm1.3 exp.3 log.3 exp.3 log10.3 exp.3 log1p.3 \ + exp.3 pow.3 MLINKS+=hypot.3 cabs.3 MLINKS+=ieee.3 copysign.3 ieee.3 drem.3 ieee.3 ilogb.3 ieee.3 nextafter.3 \ ieee.3 remainder.3 ieee.3 scalbn.3 @@ -196,6 +197,7 @@ MLINKS+=cosh.3 coshf.3 MLINKS+=erf.3 erfcf.3 MLINKS+=erf.3 erff.3 MLINKS+=exp.3 expf.3 +MLINKS+=exp.3 exp2f.3 MLINKS+=exp.3 expm1f.3 MLINKS+=exp.3 log10f.3 MLINKS+=exp.3 log1pf.3 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 . |