polyval                package:signal                R Documentation

_E_v_a_l_u_a_t_e _a _p_o_l_y_n_o_m_i_a_l

_D_e_s_c_r_i_p_t_i_o_n:

     Evaluate a polynomial at given points.

_U_s_a_g_e:

     polyval(coef, z)

_A_r_g_u_m_e_n_t_s:

    coef: coefficients of the polynomial, defined in decreasing power. 

       z: the points at which to evaluate the polynomial. 

_V_a_l_u_e:

     An array of 'length(z)', the polynomial evaluated at each element
     of 'z'.

_A_u_t_h_o_r(_s):

     Tom Short

_S_e_e _A_l_s_o:

     'poly', 'roots'

_E_x_a_m_p_l_e_s:

     polyval(c(1,0,-2), 1:3)  # s^2 - 2 

