EXP(3M) UNIX Programmer's Manual EXP(3M) NAME exp, log, log10, pow, sqrt - exponential, logarithm, power, square root functions 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; HP-UX COMPATIBILITY Level: HP-UX/RUN ONLY Origin: System III 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 common logarithm of _x. _P_o_w returns _x^_y. _S_q_r_t returns the square root of _x. HARDWARE DEPENDENCIES Series 200/500: The algorithms used are those from HP 9000 BASIC. SEE ALSO hypot(3M), sinh(3M). DIAGNOSTICS _E_x_p returns a huge value when the correct value would over- flow. An argument out of range may also result in _e_r_r_n_o being set to ERANGE. Underflow returns a zero. _L_o_g returns a huge negative value and sets _e_r_r_n_o to EDOM when _x is non-positive. _P_o_w returns a huge negative value and sets _e_r_r_n_o to EDOM when _x is non-positive and _y is not an integer, or when _x and _y are both zero. It also returns a huge value when the correct value would overflow. A truly outrageous argument may also result in _e_r_r_n_o being set to ERANGE. Underflow causes _p_o_w to return zero and set _e_r_r_n_o to ERANGE. _S_q_r_t returns 0 and sets _e_r_r_n_o to EDOM when _x is negative.