Hello
Please see the function given in ex. 3.1
then see the code (part of it describe the function)
(marked in yellow mean 0.25x^2)
according to the following derivative
the code should be
# function f(x)
f = 0.5*x**2+3
or
f = (x**2)/2+3
and not
f = (x/2)**2+3
which will result in df=0.5*x+3
Is my small penny analysis here is correct?
If so, please correct the notebook.
If not, sorry for the trouble.
Thank you