powered by
Subtract two polynomials given as vectors
polysub(a, b)
Vector representing first polynomial.
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)
polyadd
pracma
pracma::polyadd(a, -b)
# NOT RUN { polysub(c(1, 1, 1), 1) polysub(c(1, 1, 1), c(0, 0, 1)) # }
Run the code above in your browser using DataLab