|
⇤ ← Revision 1 as of 2010-12-16 12:22:11
Size: 642
Comment:
|
← Revision 2 as of 2010-12-16 12:31:24 ⇥
Size: 640
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 24: | Line 24: |
| #Therefore B=C i.e. (I-A)**(-1)=C{i.e. the sum of A**k } |
#Therefore B=C i.e. (I-A)**(-1)=C{i.e. the sum of A**k } |
Book
Linear Algebra
Author
Gilbert Strang
Edition
A=matrix([[0,.2],[0,.5]])
I=matrix(2,2,1)#identity matrix
B=(I-A)**(-1)
print B
[ 1.00000000000000 0.400000000000000]
[0.000000000000000 2.00000000000000]
C=I
for i in range(1,1000):
C=C+A**i
print C
[ 1.00000000000000 0.400000000000000]
[0.000000000000000 2.00000000000000]
#Therefore B=C i.e. (I-A)**(-1)=C{i.e. the sum of A**k }
Solution by:
<Your Name>, <Profession>, <Organization>
<Your Name>, <Profession>, <Organization>
