powered by
polymul(p, q)
conv
deconv
# Multiply x^2 + x + 1 with itself polymul(c(1, 1, 1), c(0, 1, 1, 1)) #=> 1 2 3 2 1
Run the code above in your browser using DataLab