polyadd: polyadd function

Description Usage Arguments Value

View source: R/splineFunctions.R

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

1
polyadd(poly1, 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

Value

the coefficients of the sum of poly1 and poly2


bentaylor1/spatsurv documentation built on May 11, 2017, 7:14 a.m.