exp(3) opendarwin man page | unix.com

Man Page: exp

Operating Environment: opendarwin

Section: 3

EXP(3)							   BSD Library Functions Manual 						    EXP(3)

NAME
exp, exp2, expm1 -- exponential functions
SYNOPSIS
#include <math.h> double exp(double x); float expf(float x); double exp2(double x); float exp2f(float x); double expm1(double x); float expm1f(float x);
DESCRIPTION
The exp() function computes e**x, the base-e exponential of x. The exp2() function computes 2**x, the base-2 exponential of x. The expm1() function computes the base-e exponential of x , minus 1 accurately even for very small values of x.
SPECIAL VALUES
exp(+-0) and exp2(+-0) return 1. exp(-infinity) and exp2(-infinity) return +0. exp(+infinity) and exp2(+infinity) return +infinity. expm1(+-0) returns +-0. expm1(-infinity) returns -1. expm1(+infinity) returns +infinity. For all these functions, a range error occurs if the magnitude of x is too large.
SEE ALSO
math(3), infnan(3)
STANDARDS
The exp() , expf() , exp2() , exp2f() , expm1() , and expm1f() functions conform to ISO/IEC 9899:1999(E). 4th Berkeley Distribution January 30, 2003 4th Berkeley Distribution
Related Man Pages
exp(3) - mojave
exp2f(3) - mojave
exp2(3) - mojave
expm1(3) - mojave
exp2l(3) - mojave
Similar Topics in the Unix Linux Community
What editor does everyone use?
Pop up dialog box on remote computers
Should we expand the forums?
AWK Script Issue insert newline for a regular expression match
Noob trying to improve