Book
Linear Algebra
Author
Gilbert Strang
Edition
# Sec. 3.2, Example 1 import numpy as np a = matrix((1,1,1)) b = matrix((1,2,3)) at = a.transpose() num = np.dot(b, at)[0][0] den = np.dot(a, at)[0][0] print num / den
Solution by:
<Dr. A. W. Pangantiwar>, <Associate Prof. in Physics>, <Govt. College of Engineering, KARAD - 415124. Dist. Satara>