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 / curve < prev    next >
Encoding:
Text File  |  1997-04-23  |  970 b   |  34 lines

  1.     
  2.     _D_r_a_w _F_u_n_c_t_i_o_n _P_l_o_t_s
  3.     
  4.          curve(expr, from, to, n=100, ...)
  5.     
  6.     _A_r_g_u_m_e_n_t_s:
  7.     
  8.             expr : an expression, written as a function of x
  9.                    which will be plotted.
  10.     
  11.          from,to : the range over which the function will be
  12.                    plotted.
  13.     
  14.                n : the expression will be evaluated at n points
  15.                    equally spaced over the range [from, to].
  16.                    The points determined in this way are then
  17.                    joined with straight lines.
  18.     
  19.              ... : graphical parameters can also be specified as
  20.                    arguments.
  21.     
  22.     _V_a_l_u_e:
  23.     
  24.          This function draws a curve corresponding to the given
  25.          expression (in x) over the interval [from,to].  It is a
  26.          quick hack which seems to serve a useful purpose, but
  27.          can give bad results for functions which are discon-
  28.          tinuous.
  29.     
  30.     _E_x_a_m_p_l_e_s:
  31.     
  32.          curve(x^3-3*x, -2, 2)
  33.     
  34.