Menu

[r2807]: / trunk / course / examples / scipy / example10.2.2  Maximize  Restore  History

Download this file

11 lines (10 with data), 192 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
>>> A = mat('[1 3 5; 2 5 1; 2 3 8]')
>>> b = mat('[10;8;3]')
>>> A.I*b
Matrix([[-9.28],
[ 5.16],
[ 0.76]])
>>> linalg.solve(A,b)
array([[-9.28],
[ 5.16],
[ 0.76]])
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.