# $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
#
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
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
-.\" $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.
.\"
.\" 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 ,
.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"
.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
.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 .