polysub(a1, a2)
This forms part of the old polynomial API. Since version 1.4, the new polynomial API defined in :None:None:`numpy.polynomial`
is preferred. A summary of the differences can be found in the :None:doc:`transition guide </reference/routines.polynomials>`
.
Given two polynomials :None:None:`a1`
and :None:None:`a2`
, returns a1 - a2
. :None:None:`a1`
and :None:None:`a2`
can be either array_like sequences of the polynomials' coefficients (including coefficients equal to zero), or poly1d
objects.
Minuend and subtrahend polynomials, respectively.
Difference (subtraction) of two polynomials.
>>> np.polysub([2, 10, -2], [3, 10, -4]) array([-1, 0, 2])See :
The following pages refer to to this document either explicitly or contain code examples using this.
numpy.polynomial.polynomial.polymul
numpy.polynomial.polynomial.polypow
numpy.polymul
numpy.polynomial.polynomial.polymulx
numpy.polydiv
numpy.polynomial.polynomial.polydiv
numpy.polyadd
numpy.polynomial.polynomial.polyadd
Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.
Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)
SVG is more flexible but power hungry; and does not scale well to 50 + nodes.
All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them