exp
function returns the value of e (the base of natural
logarithms) raised to power x.
The function fails, and sets errno
to ERANGE
, if the
magnitude of the result is too large to be representable.
exp (log
(x))
equals x, exactly in mathematics and approximately in
C.
The following errno
error conditions are defined for this function:
EDOM
ERANGE
log
function. In fact,
log10 (x)
equals log (x) / log (10)
.
The following errno
error conditions are defined for this function:
EDOM
ERANGE
The sqrt
function fails, and sets errno
to EDOM
, if
x is negative. Mathematically, the square root would be a complex
number.
hypot
function returns sqrt (x*x +
y*y)
. (This is the length of the hypotenuse of a right
triangle with sides of length x and y, or the distance
of the point (x, y) from the origin.) See also the function
cabs
in section Absolute Value.
exp (x) - 1
.
It is computed in a way that is accurate even if the value of x is
near zero--a case where exp (x) - 1
would be inaccurate due
to subtraction of two numbers that are nearly equal.
log (1 + x)
.
It is computed in a way that is accurate even if the value of x is
near zero.
Go to the first, previous, next, last section, table of contents.