Change language

|

Parameters :

`  p1:  Input polynomial 1  p2:  Input polynomial 2 `

Return:

` Sum of polynomials `

 ` # Python code explaining ` ` # numpy.polyadd () `   ` # import libraries ` ` import ` ` numpy as np `   ` p1 ` ` = ` ` np.poly1d ([` ` 1 ` `, ` ` 2 ` `]) ` ` p2 ` ` = ` ` np.poly1d ([` ` 9 ` , ` 5 ` `, ` ` 4 ` `]) `   ` print ` ` (` ` "P1:" ` `, p1) ` ` print ` ` (` ` "P2:" ` `, p2) `   ` a ` ` = ` ` np.polyadd (p1, p2) `   ` print ` ` (` `" P1 + P2: "` `, a) `

Output:

` P1: 1 x + 2 P2: 2 9 x + 5 x + 4 P1 + P2: 2 9 x + 6 x + 6 `

## Shop

Learn programming in R: courses

\$

Best Python online courses for 2022

\$

Best laptop for Fortnite

\$

Best laptop for Excel

\$

Best laptop for Solidworks

\$

Best laptop for Roblox

\$

Best computer for crypto mining

\$

Best laptop for Sims 4

\$

Latest questions

NUMPYNUMPY

psycopg2: insert multiple rows with one query

NUMPYNUMPY

How to convert Nonetype to int or string?

NUMPYNUMPY

How to specify multiple return types using type-hints

NUMPYNUMPY

Javascript Error: IPython is not defined in JupyterLab

## Wiki

Python OpenCV | cv2.putText () method

numpy.arctan2 () in Python

Python | os.path.realpath () method

Python OpenCV | cv2.circle () method

Python OpenCV cv2.cvtColor () method

Python - Move item to the end of the list

time.perf_counter () function in Python

Check if one list is a subset of another in Python

Python os.path.join () method