EXP(3M) — MATHEMATICAL FUNCTIONS
NAME
exp, log, log10, pow, sqrt − exponential, logarithm, power, square root
SYNOPSIS
#include <math.h>
double exp(x)
double x;
double log(x)
double x;
double log10(x)
double x;
double pow(x, y)
double x, y;
double sqrt(x)
double x;
DESCRIPTION
Exp returns the exponential function of x.
Log returns the natural logarithm of x; log10 returns the base 10 logarithm.
Pow returns xy.
Sqrt returns the square root of x.
SEE ALSO
DIAGNOSTICS
These functions handle exceptional arguments in the spirit of IEEE standard P754 for binary floating point arithmetic. sqrt(x) for x < 0, 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.0β — Last change: 19 January 1983