Learn R Programming

spatsurv (version 2.0)

polymult: polymult function

Description

A function to multiply two polynomials in the form of vectors of coefficients. The first element of the vector being the constant (order 0) term

Usage

polymult(poly1, poly2)

Value

the coefficients of the product of poly1 and poly2

Arguments

poly1

a vector of coefficients for the first polynomial of length degree plus 1

poly2

a vector of coefficients for the second polynomial of length degree plus 1