|
⇤ ← Revision 1 as of 2010-12-16 12:05:44
Size: 472
Comment:
|
← Revision 2 as of 2010-12-18 10:55:20 ⇥
Size: 529
Comment: LU decomposition
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 7: | Line 7: |
| {{{# 1.We need to prove that lu=a we can solve that lu-a==0 a = matrix([[1,2], [ 3, 8]]) u = matrix([[1,2], [ 0, 2]]) l = matrix([[1,0], [ 3, 1]]) l*u-a==0 Output True |
{{{ E=([[1,2],[3,8]]) Z=matrix(2,2) var('y') L=matrix([[1,0],[x,1]]) U=matrix([[1,y],[0,2]]) Z=L*U for i in range(2): for j in range (2): Z[i][j]==E[i][j] f=function('f',x) f=L print f(3) f1=function('f1',y) f1=U print f1(2) R=f(3)*f1(2) print R |
| Line 20: | Line 30: |
| * <sravan sanghishetty>, <student>, <vignan> * <karthik.p>, <student>, <Vignan> * <sridhar.b>,<student>,<Vignan> |
* guna,student,snist * sadhana,student,snist * sai kumar,student,mriet |
Book
Linear Algebra
Author
Gilbert Strang
Edition
E=([[1,2],[3,8]])
Z=matrix(2,2)
var('y')
L=matrix([[1,0],[x,1]])
U=matrix([[1,y],[0,2]])
Z=L*U
for i in range(2):
for j in range (2):
Z[i][j]==E[i][j]
f=function('f',x)
f=L
print f(3)
f1=function('f1',y)
f1=U
print f1(2)
R=f(3)*f1(2)
print R
Solution by:
- guna,student,snist
- sadhana,student,snist
- sai kumar,student,mriet
