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

  1.     
  2.     _E_v_a_l_u_a_t_e _a_n (_U_n_e_v_a_l_u_a_t_e_d) _E_x_p_r_e_s_s_i_o_n
  3.     
  4.          eval(expr, envir=sys.frame(sys.parent()))
  5.     
  6.     _V_a_l_u_e:
  7.     
  8.          This function evaluates the expression expr argument in
  9.          the environment specified by envir and returns the
  10.          compted value.  If envir is not specified, then the
  11.          environment where the call to eval is made is used.
  12.     
  13.     _S_e_e _A_l_s_o:
  14.     
  15.          expression, environment.
  16.     
  17.     _E_x_a_m_p_l_e_s:
  18.     
  19.          eval(2 ^ 2 ^ 3)
  20.          mEx <- expression(2^2^3); mEx; 1 + eval(mEx)
  21.          eval({ xx <- pi; xx^2}) ; xx
  22.     
  23.