EXP(3M) — MATHEMATICAL FUNCTIONS
NAME
exp, log, log10, pow − exponential, logarithm, power
SYNOPSIS
#include <math.h>
double exp(x)
double x;
double expm1(x)
double x;
double log(x)
double x;
double log10(x)
double x;
double log1p(x)
double x;
double pow(x, y)
double x, y;
DESCRIPTION
Exp returns the exponential function of x.
Expm1 returns exp(x)-1 accurately even for tiny x.
Log returns the natural logarithm of x.
Log10 returns the base 10 logarithm.
Log1p returns log(1+x) accurately even for tiny x;
Pow returns xy.
SEE ALSO
DIAGNOSTICS
These functions handle exceptional arguments in the spirit of IEEE standard P754 for binary floating point arithmetic. Log(x) for x < 0, log10(x) for x < 0, pow(0.0,0.0), pow(infinity,0.0), and pow(1.0,infinity) are invalid, as is pow(x,y) if x < 0 and y is not an integer value or infinite value; in all these cases NaN function values are returned and errno is set to EDOM.
Sun Release 3.2 — Last change: 14 March 1986