The numpy.polymul (p1, p2) method computes the product of two polynomials and returns the polynomial obtained by multiplying the two input polynomials & # 39; p1 & # 39; and & # 39; p2 & # 39 ;.
p1: [array_like or poly1D] Input polynomial 1 .
p2: [array_like or poly1D] Input polynomial 2.
Return: Polynomial resulting from multiplication of the inputs. p >
If any of the input is a
poly1D object, then otherwise the output is also a poly1D object, an array of 1D polynomial coefficients in decreasing order of degree.
Code: Python code explaining polymul ()
np.polymul (p2, p1)
"Multiplication Result :"
The ability to identify patterns is an essential component of sensory intelli- gent machines. Pattern recognition is therefore an indispensible component of the so-called “Intelligent Control System...
A Practical Approach to Computer Algorithms Using Python® and C# Rod Stephens started out as a mathematician, but while studying at MIT, he discovered how much fun algorithms are. He took every al...
Python for Programmers: with Big Data and Artificial Intelligence Case Studies This book, written for programmers with a high-level experience in another language, uses how-to instructions to teach...
Computer Age Statistical Inference: Algorithms, Evidence, and Data Science (Institute of Mathematical Statistics Monographs, Series Number 6). The twenty-first century has seen a breathtaking expan...