EXP(3M) UNIX Programmer's Manual EXP(3M) NAME exp, log, log10, pow, sqrt - exponential, logarithm, power, square root SYNOPSIS #include 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 _E_x_p returns the exponential function of _x. _L_o_g returns the natural logarithm of _x; _l_o_g_1_0 returns the base 10 logarithm. _P_o_w returns _x8_y9. _S_q_r_t returns the square root of _x. SEE ALSO intro(2), hypot(3M), sinh(3M) DIAGNOSTICS _E_x_p and _p_o_w return a huge value when the correct value would overflow; _e_r_r_n_o is set to ERANGE. _P_o_w returns 0 and sets _e_r_r_n_o to EDOM when the second argument is negative and non- integral and when both arguments are 0. _L_o_g returns 0 when _x is zero or negative; _e_r_r_n_o is set to EDOM. _S_q_r_t returns 0 when _x is negative; _e_r_r_n_o is set to EDOM. Printed 5/17/83 1