Basic Mathematics for Robotics, Chapter 3, Exercise 3.1

Hello

Please see the function given in ex. 3.1
image

then see the code (part of it describe the function)
image

(marked in yellow mean 0.25x^2)

according to the following derivative

image

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

Hello @TAURD ,

You are totally right, I’ve already fixed this in the notebook. Many thanks for the feedback!

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.