Hello I’m learning numpy, So there is a equation I did in google collab presented by my lecturer. The answer provided by the google collab is ‘[39 58]’. I didnt understand how it calculated, i asked chatgpt, it insist the answer is ‘[29, 67]’. Care to help me in this.
The code:
import numpy as np
x = np.array([[1,2], [3,4]])
v = np.array([9, 10])
print(v.dot(x))
print(np.dot(v, x))
Please Help! Hope you have a nice day
The answer provided by chat gpt, ‘[29, 67]’ is actually for:
print(x.dot(v))
print(np.dot(x, v))
New contributor
Imran is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.