This manual page is for Mac OS X version 10.6.3

If you are running a different version of Mac OS X, view the documentation locally:

  • In Terminal, using the man(1) command

Reading manual pages

Manual pages are intended as a quick reference for people who already understand a technology.

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

  • For more information about this technology, look for other documentation in the Apple Reference Library.

  • For general information about writing shell scripts, read Shell Scripting Primer.



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(+-_) and exp2(+-_) return 1.

     exp(-infinity) and exp2(-infinity) return +0.

     exp(+infinity) and exp2(+infinity) return +infinity.

     expm1(+-_) 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                     December 11, 2006                    4th Berkeley Distribution

Reporting Problems

The way to report a problem with this manual page depends on the type of problem:

Content errors
Report errors in the content of this documentation with the feedback links below.
Bug reports
Report bugs in the functionality of the described tool or API through Bug Reporter.
Formatting problems
Report formatting mistakes in the online version of these pages with the feedback links below.

Did this document help you? Yes It's good, but... Not helpful...