Subtracting Polynomials
Subtract two polynomials given as vectors
polysub(a, b)
a
: Vector representing first polynomial.b
: Vector representing second polynomial.Returns a Vector representing the resulting polynomial.
Simply calls polyadd
from pracma
package in the following manner: pracma::polyadd(a, -b)
polysub(c(1, 1, 1), 1) polysub(c(1, 1, 1), c(0, 0, 1))
Useful links