Learn R Programming

spatsurv (version 2.0)

polyadd: polyadd function

Description

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

Usage

polyadd(poly1, poly2)

Value

the coefficients of the sum 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