Defined in header <scicpp/polynomials.hpp>
Substract two polynomials.
T
, std::size_t M
, std::size_t N
>polysub
(const std::array<T, M> &P1, const std::array<T, N> &P2)¶Polynomial coefficients are defined as two std::array P1 and P2.
Return the resulting polynomial coefficients in a std::array of size the largest size between M and N.
Polynomial coefficients are defined as two std::vector P1 and P2.
Return the resulting polynomial coefficients in a std::vector of size the
largest size between P1.size()
and P2.size()
.