Learning Scientific Programming with Python (2nd edition)
Q6.4.1: Derivative of a polynomial
Question Q6.4.1
The third derivative of the polynomial function $P(x) = 3x^3 + 2x - 7$ is $18$, so why does the following evaluate as False
?
In [x]: from numpy.polynomial import Polynomial
In [x]: Polynomial((-7, 2, 0, 3)).deriv(3) == 18
Out[x]: False