polynomial              package: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(p)
     is.polynomial(p)

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

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

       p: an arbitrary R object.

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

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

           p[1] + p[2]* x + p[3]* x^2 + ... + p[k]* x^(k-1)

     . Internally, polynomials are simply numeric coefficient vectors
     of class `"polynomial"'.  Several useful methods are available for
     this class, such as coercion to character and function, extraction
     of the coeeficients, printing and plotting.

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

     `is.polynomial' tests whether its argument is a polynomial (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))

