1EXP(3M)                                                                EXP(3M)
2
3
4

NAME

6       exp, log, log10, pow, sqrt - exponential, logarithm, power, square root
7

SYNOPSIS

9       #include <math.h>
10
11       double exp(x)
12       double x;
13
14       double log(x)
15       double x;
16
17       double log10(x)
18       double x;
19
20       double pow(x, y)
21       double x, y;
22
23       double sqrt(x)
24       double x;
25

DESCRIPTION

27       Exp returns the exponential function of x.
28
29       Log returns the natural logarithm of x; log10 returns the base 10 loga‐
30       rithm.
31
32       Pow returns xy.
33
34       Sqrt returns the square root of x.
35

SEE ALSO

37       hypot(3), sinh(3), intro(2)
38

DIAGNOSTICS

40       Exp and pow return a huge value when the correct value would  overflow;
41       errno  is set to ERANGE.  Pow returns 0 and sets errno to EDOM when the
42       second argument is negative and non-integral and  when  both  arguments
43       are 0.
44
45       Log returns 0 when x is zero or negative; errno is set to EDOM.
46
47       Sqrt returns 0 when x is negative; errno is set to EDOM.
48
49
50
51                                                                       EXP(3M)
Impressum