Given two arrays, A and B:
A=np.array([0,4,2])
B=np.array([0,8,4])
I want to know if I can multiply A by a scalar (x) and get B (A*x==B?) and if that is the case I want to know the value of the scalar (in this case 2). I have searched and tried the solve function without luck