SIN(3M) UNIX Programmer's Manual SIN(3M) NAME sin, cos, tan, asin, acos, atan, atan2 - trigonometric func- tions SYNOPSIS #include double sin(x) double x; double cos(x) double x; double tan(x) double x; double asin(x) double x; double acos(x) double x; double atan(x) double x; double atan2(x, y) double x, y; DESCRIPTION _S_i_n, _c_o_s and _t_a_n return trigonometric functions of radian arguments. The magnitude of the argument should be checked by the caller to make sure the result is meaningful. _A_s_i_n returns the arc sin in the range -J/2 to J/2. _A_c_o_s returns the arc cosine in the range 0 to J. _A_t_a_n returns the arc tangent of _x in the range -J/2 to J/2. _A_t_a_n_2 returns the arc tangent of _x/_y in the range -J to J. DIAGNOSTICS Arguments of magnitude greater than 1 cause _a_s_i_n and _a_c_o_s to return value 0; _e_r_r_n_o is set to EDOM. The value of _t_a_n at its singular points is a huge number, and _e_r_r_n_o is set to ERANGE. BUGS The value of _t_a_n for arguments greater than about 2**31 is garbage. Printed 5/24/83 1