polyadd | R Documentation |
Add two polynomials given as vectors.
polyadd(p, q)
p , q |
Vectors representing two polynomials. |
Polynomial addition realized simply by multiplying and summing up all the coefficients after extending vectors to the same length.
Vector representing a polynomial.
There is no such function in Matlab or Octave.
conv
polyadd(c(1, 1, 1), 1)
polyadd(c(1, 1, 1), c(0, 0, 1))
polyadd(c(-0.5, 1, -1), c(0.5, 0, 1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.