EXP(3M)
NAME
exp, log, pow, sqrt − exponential, logarithm, power, square root functions
SYNOPSIS
#include <math.h>
double exp (x)
double x;
double log (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.
Pow returns xy.
Sqrt returns the square root of x.
SEE ALSO
intro(2), hypot(3M), sinh(3M).
DIAGNOSTICS
Exp and pow return a huge value when the correct value would overflow. A truly outrageous argument may also result in errno being set to ERANGE.
Log returns a huge negative value and sets errno to EDOM when x is non-positive.
Pow returns a huge negative value and sets errno to EDOM when x is non-positive and y is not an integer, or when x and y are both zero.
Sqrt returns 0 and sets errno to EDOM when x is negative.