3 ms·
Note that using Numpy this is quite straightforward: from numpy.polynomial import Polynomial print(Polynomial.fromroots([-1, 1]))
by amelius 4y ago
Note that using Numpy this is quite straightforward:
from numpy.polynomial import Polynomial
print(Polynomial.fromroots([-1, 1]))