

polynomial(polynom)                          R Documentation

_P_o_l_y_n_o_m_i_a_l_s

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

     Construct, coerce to and test for polynomial objects.

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

     polynomial(coef = c(0, 1))
     as.polynomial(x)
     is.polynomial(x)

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

       p: numeric vector, giving the polynomial coefficients
          in increasing order.

_D_e_t_a_i_l_s_:

     `polynomial' constructs a polynomial from its coeffi-
     cients, i.e., `p[1:k]' specifies the polynomial

            p_1 + p_2 x + p_3 x^2 + ... + p_k x^{k-1}

     {p[1] + p[2]* x + p[3]* x^2 + ... + p[k]* x^(k-1)}.
     Internally, polynomials are simply numeric coefficient
     vectors of class `"polynomial"'.

     `as.polynomial' tries to coerce its arguments to a
     polynomial.

     `is.polynomial' tests whether its argument is a polyno-
     mial (in the sense that it has class `"polynomial"'.

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

     polynomial(1:4)
     as.polynomial(c(1,0,3,0))
     polynomial(c(2,rep(0,10),1))

