Basic Mathematics for Robotics - Linear Algebra Example

Script in the Notes not working?
user:~/catkin_ws/src/mathsrobotics/unit2_exercises$ python vector.py
Traceback (most recent call last):
File “vector.py”, line 5, in
vectors = [np.array((4,2)),np,array((-3,3)),np.array((-2,2))]
NameError: name ‘array’ is not defined
user:~/catkin_ws/src/mathsrobotics/unit2_exercises$

Hello @drvsiva,

It looks like you introduced an error when you pasted the code to your script, in this line:

vectors = [np.array((4,2)),np,array((-3,3)),np.array((-2,2))]

It is not np,array((-3,3) but np.array((-3,3) (with a dot).

Best,