14 lines
278 B
Python
14 lines
278 B
Python
|
from polynomial import Polynomial
|
||
|
|
||
|
p1 = Polynomial([0, 2, 3, 4, 0, 0, 9])
|
||
|
p2 = Polynomial([0, 0, 1])
|
||
|
p3 = Polynomial([1, 0, 0, 1])
|
||
|
|
||
|
print("p1 = ", p1)
|
||
|
print("p2 = ", p2)
|
||
|
print("p3 = ", p3)
|
||
|
|
||
|
print("p1 + p3 = ", p1 + p3)
|
||
|
print("p2 * p3 = ", p2 * p3)
|
||
|
print("p1 * p3 = ", p1 * p3)
|