Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

polyMul

Multiplication of Two Polynomials


Description

Multiplication of two polynomials.

Usage

polyMul(p, q)

Arguments

p

coefficients of first polynomial

q

coefficients of second polynomial

Details

inputs are vectors of coefficients in order of power ax^0 + bx^1 + cx^2 + ...

Value

coefficients of the product in order of power

Author(s)

D.S. Stoffer

References

based on code from the polymatrix package https://github.com/namezys/polymatrix

Examples

a = 1:3  # 1 + 2x + 3x^2
b = 1:2  # 1 + 2x
polyMul(a, b) 
# [1] 1 4 7 6
# 1 + 4x + 7x^2 + 6x^3

astsa

Applied Statistical Time Series Analysis

v1.12
GPL-3
Authors
David Stoffer
Initial release
2020-12-20

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.