Menu

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

Download this file

14 lines (13 with data), 308 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
>>> A = mat('[1 3 5; 2 5 1; 2 3 8]')
>>> A
Matrix([[1, 3, 5],
[2, 5, 1],
[2, 3, 8]])
>>> A.I
Matrix([[-1.48, 0.36, 0.88],
[ 0.56, 0.08, -0.36],
[ 0.16, -0.12, 0.04]])
>>> linalg.inv(A)
array([[-1.48, 0.36, 0.88],
[ 0.56, 0.08, -0.36],
[ 0.16, -0.12, 0.04]])
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.