ADC Home > Reference Library > Reference > Mac OS X > Mac OS X Man Pages

 

This document is a Mac OS X manual page. Manual pages are a command-line technology for providing documentation. You can view these manual pages locally using the man(1) command. These manual pages come from many different sources, and thus, have a variety of writing styles.

For more information about the manual page format, see the manual page for manpages(5).



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

NAME
     exp, exp2, expm1 -- exponential functions

SYNOPSIS
     #include <math.h>

     double
     exp(double x);

     long double
     expl(long double x);

     float
     expf(float x);

     double
     exp2(double x);

     long double
     exp2l(long double x);

     float
     exp2f(float x);

     double
     expm1(double x);

     long double
     expm1l(long 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 val-ues values
     ues 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)

STANDARDS
     The exp() , exp2() , and expm1() functions conform to ISO/IEC 9899:1999(E).

4th Berkeley Distribution      January 30, 2003      4th Berkeley Distribution

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.