polyadd: polyadd function

View source: R/splineFunctions.R

polyaddR Documentation

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)

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


spatsurv documentation built on Oct. 19, 2023, 9:07 a.m.