x=np.array([1, 2, 3])
v=np.array([1,0,0])
delta=0.001
xp=x+v*delta
xm=x-v*delta
I have seen various threads asking the same question, but none of them resolves my problem. Particularly, this link: Why do I get TypeError: can't multiply sequence by non-int of type 'float'? was relevant, but I still get the same error while calculating xp and xm. I want to multiply delta by the entire array (as is obvious). Numpy arrays are a solution to this, as I saw in other threads, but I can't discern why my code isn't working. Any help will be appreciated.