Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


astsa (version 1.14)

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

Value

coefficients of the product in order of power

Details

inputs are vectors of coefficients a, b, c, ..., in order of power ax0+bx1+cx2+...

References

You can find demonstrations of astsa capabilities at FUN WITH ASTSA.

The most recent version of the package can be found at https://github.com/nickpoison/astsa/.

In addition, the News and ChangeLog files are at https://github.com/nickpoison/astsa/blob/master/NEWS.md.

The webpages for the texts are https://www.stat.pitt.edu/stoffer/tsa4/ and https://www.stat.pitt.edu/stoffer/tsda/.

Examples

Run this code
# NOT RUN {
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
# }

Run the code above in your browser using DataLab