exp(3M)
NAME
exp, log, log10, pow − exponential, logarithm, power
SYNOPSIS
#include <math.h>
double exp(double x);
double log(double x);
double log10(double x);
double pow(double x, double y);
DESCRIPTION
exp() returns the exponential function e∗∗x.
log() returns the natural logarithm of x.
log10() return the logarithm to base 10.
pow() returns x∗∗y. pow(0.0,0.0) is 0.0 in conformance with SVID.
SEE ALSO
DIAGNOSTICS
All these functions handle exceptional arguments in conformance with the i System V Interface Definition (SVID). Thus for x == ±0, log(x) is −HUGE (HUGE = ∞) with a division by zero exception; for x < 0, log(x) is −HUGE with an invalid operation exception; for x == +∞ or a quiet NaN, log(x) is x without exception; for x a signaling NaN, log(x) is a quiet NaN with an invalid operation exception; for x == 1, log(x) is 0 without exception; for any other positive x, log(x) is a normalized number with an inexact exception.
In addition, exp(), log(), log10() and pow() may also set errno and call matherr(3M).
SunOS 5.1 — Last change: 30 Apr 1992