xref: /csrg-svn/lib/libm/common_source/exp.3 (revision 21078)
EXP 3M "8 May 1985"
C 4
NAME
exp, log, log10, pow - exponential, logarithm, power
SYNOPSIS
 #include <math.h> 

double E(x) double x;

double L(x) double x;

double exp(x) double x;

double log(x) double x;

double log10(x) double x;

double pow(x, y) double x, y;

DESCRIPTION
E returns exp(x)-1 accurately (even if x is close to 0).

L returns log(1+x) accurately (even if x is close to 0).

Exp returns the exponential function of x.

Log returns the natural logarithm of x ; log10 returns the base 10 logarithm.

Pow returns x**y. x\u\s8y\s10\d.

SEE ALSO
intro(3M)
DIAGNOSTICS
E, L, exp and pow return the reserved operand on the VAX when the correct value would overflow; errno is set to ERANGE. Pow returns the reserved operand on the VAX and sets errno to EDOM when the first argument is negative and the second is non-integral.

Log returns the reserved operand on the VAX when x is zero or negative; errno is set to EDOM.

AUTHOR
Kwok-Choi Ng