Вы находитесь на странице: 1из 3

Лабораторная работа №3

Прямые методы решения систем линейных алгебраических уравнений

 1.1 11.3 1.7 1.8  10 


1.3 11.7 1.8 1.4  1.3
A   B   
 6.2 10.5 1.7 1.5   1.1
 1.5   10 
 0.5 1.8 1.1   
1)

 3.175  3.1752111041569760909

0.977 0.97691124261160989436
X  lsolve( A B) X X 
 3.884  3.8840423032367601479
 1.151  1.150579255232570414 
   

2)

 10 11.3 1.7 1.8   1.1 10 1.7 1.8 


1.3 11.7 1.8 1.4  1.3 1.3 1.8 1.4
  A 1   2   
 1.1 10.5 1.7 1.5   6.2 1.1 1.7 1.5 
 10   1.5 
 0.5 1.8 1.1   10 1.8 1.1 

 1.1 11.3 10 1.8   1.1 11.3 1.7 10 



1.3 11.7 1.3 1.4  1.3 11.7 1.8 1.3 
3   4  
 6.2 10.5 1.1 1.5   6.2 10.5 1.7 1.1 
 1.5   1.5 
 0.5 10 1.1   0.5 1.8 10 

 1 
  
 2   3.175  3.1752111041569760909

   0.977 0.97691124261160989436
X    X X 
 3   3.884  3.8840423032367601479
    {4,4}  
   {4,4} 
 4 
  
 

3)

 0.137 0.047 0.087 0.165   1 0 0 0


 
0.045 0.03 0.016 0.058  0 1 0 0
 A A  
1 1
A
 0.03 0.118 0.116 0.356  0 0 1 0
 0.215  0 
 0.27 0.064 0.128  0 0 1

4)
D  lu( A )

D

P  submatrix( D 0 3 0 3)

L  submatrix( D 0 3 4 7)

U  submatrix( D 0 3 8 11)

 0 0 0 1  1 0 0 0  1.5 0.5 1.8 1.1 


  
1 0 0 0 0.733 1 0 0 0 11.667 3.02 2.607
P L U
0 0 1 0  4.133 0.723 1 0 0 0 11.323 4.931
0   0.867 0.966  0 
 1 0 0  0.236 1   0 0 3.705

5)
1
A  P  L U
 3.175
0.977
X
1
X  A B
 3.884
 1.151
 

 1.1 11.3 1.7 1.8 10 


6) 
1.3 11.7 1.8 1.4 1.3 
n  3 m  augment( A B) m
 6.2 10.5 1.7 1.5 1.1 
 1.5 
 0.5 1.8 1.1 10 
l  for k  0  n
p m
0 k 0 k  1.1 11.3 1.7 1.8 0 
h  1 0 25.055 3.809 0.727 10.518
l 
for j  1  n 0 0 3.315 2.756 0.067 
h h 1 0 
 0 0 2.688 11.165 
for k  j  n
for i  h  n  1
m
k h
p m m 
k i k i h i m
h h
return p
X( l)  r  rows ( l)  1
c  cols( l)  2
for i  r  0
n 0
for j  c  i  1 if i  r
n nl m
i j j

m 
 lic 1  n
i l
i i
return m

M  ( 1 2 )