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]: Polynomial((-7, 2, 0, 3)).deriv(3) == 18
Out[x]: False

Solution

To access solutions, please obtain an access code from Cambridge University Press at the Lecturer Resources page for my book (registration required) and then sign up to scipython.com providing this code.