polylist               package:polynom               R Documentation

_L_i_s_t_s _o_f _P_o_l_y_n_o_m_i_a_l_s

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

     Create and manipulate lists of polynomials.

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

     polylist(...)
     as.polylist(x)
     is.polylist(x)

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

     ...: a list of R objects.

       x: an R object.

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

     'polylist' takes a list of arguments, tries to convert each into a
     polynomial (see 'polynomial'), and sets the class of the list to
     '"polylist"'.

     'as.polylist' tries to coerce its arguments to a polylist, and
     will do so for arguments which are polynomials or lists thereof.

     'is.polylist' tests whether its argument is a polylist.

     This class has several useful methods, such as taking derivatives
     ('deriv') and antiderivatives ('integral'), printing and plotting,
     subscripting, computing sums and products of the elements, and
     methods for 'c', 'rep', and 'unique'.

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

     ## Calculate orthogonal polynomials
     pl <- poly.orth(rep(1:4, 1:4), 3)
     pl
     plot(pl)
     deriv(pl)
     integral(pl)
     sum(pl)
     prod(pl)
     unique(rep(pl, 3)[c(8, 12)])

