-
numpy.polysub(a1, a2)[source] -
Difference (subtraction) of two polynomials.
Given two polynomials
a1anda2, returnsa1 - a2.a1anda2can be either array_like sequences of the polynomials? coefficients (including coefficients equal to zero), orpoly1dobjects.Parameters: a1, a2 : array_like or poly1d
Minuend and subtrahend polynomials, respectively.
Returns: out : ndarray or poly1d
Array or
poly1dobject of the difference polynomial?s coefficients.Examples

>>> np.polysub([2, 10, -2], [3, 10, -4]) array([-1, 0, 2])
numpy.polysub()
2025-01-10 15:47:30
Please login to continue.