

polyrt(timeslab)                             R Documentation

_F_i_n_d _t_h_e _R_o_o_t_s _o_f _a _P_o_l_y_n_o_m_i_a_l _G_i_v_e_n _i_t_s _C_o_e_f_f_i_c_i_e_n_t_s

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

     Find the Roots of a Polynomial Given its Coefficients

_U_s_a_g_e_:

     polyrt(coeffs,m=100,eps=1.e-6)

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

  coeffs: Array of length $p+1$ containing the coefficients
          of the polynomial of degree $p$, ({`coeffs'}(i) is
          the coefficient of power $i-1$).

       m: Integer containing the maximum number of itera-
          tions in the procedure.

     eps: Real scalar indicating the convergence criterion.

_V_a_l_u_e_:

  polyrt: returns a list containing the following items:

    real: Array of length $p$ containing the real parts of
          the roots.

    imag: Array of length $p$ containing the imaginary parts
          of the roots.

     ier: Integer variable indicating whether or not the
          procedure converged (0 means yes, 1 means no).

