home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / NEXTSTEP / UNIX / Educational / R-0.49-MI / R-0.49-I / help / base / Trig < prev    next >
Encoding:
Text File  |  1997-04-23  |  825 b   |  31 lines

  1.     
  2.     _T_r_i_g_o_n_o_m_e_t_r_i_c _F_u_n_c_t_i_o_n_s
  3.     
  4.          cos(x)
  5.          sin(x)
  6.          tan(x)
  7.          acos(x)
  8.          asin(x)
  9.          atan(x)
  10.          atan2(y, x)
  11.     
  12.     _D_e_s_c_r_i_p_t_i_o_n:
  13.     
  14.          These functions give the obvious trigonometric func-
  15.          tions.  They respectively compute the cosine, sine,
  16.          tangent, arc-cosine, arc-sine, arc-tangent and arc-
  17.          tangent of two arguments.
  18.     
  19.     _S_e_e _A_l_s_o:
  20.     
  21.          Log, Math.
  22.     
  23.     _E_x_a_m_p_l_e_s:
  24.     
  25.          x <- 1:99/100
  26.          all(Mod(1 - (cos(x) + 1i*sin(x)) / exp(1i*x)) < 1.1 * .Machine$double.eps)
  27.           2* abs(1 - x / acos(cos(x))) / .Machine$double.eps #-- depends ?
  28.          all(abs(1 - x / asin(sin(x))) <= .Machine$double.eps) # TRUE (Solaris)
  29.          all(abs(1 - x / atan(tan(x))) <= .Machine$double.eps) # TRUE (Solaris)
  30.     
  31.