Differences between revisions 1 and 3 (spanning 2 versions)
Revision 1 as of 2010-12-17 09:22:16
Size: 446
Editor: 172
Comment:
Revision 3 as of 2010-12-17 11:45:00
Size: 474
Editor: 172
Comment:
Deletions are marked like this. Additions are marked like this.
Line 8: Line 8:
# Example 1, page 155 # Sec. 3.2, Example 1
Line 21: Line 22:
   * <Your Name>, <Profession>, <Organization>
   * <Your Name>, <Profession>, <Organization>
   * <Dr. A. W. Pangantiwar>, <Associate Prof. in Physics>, <Govt. College of Engineering, KARAD - 415124. Dist. Satara>
  • 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>

Strang-3.2-1 (last edited 2010-12-17 11:45:00 by 172)