Sie sind auf Seite 1von 6

A.

DOOLITTLE'S METHOD

Enter coefficient and constant of linear equations:


1st equatio2.0000 0.0000 -5.0000 3.0000 -1.0000 -66.0000
2nd equati 1.0000 3.0000 0.0000 -1.0000 7.0000 98.0000
3rd equati 12.0000 -4.0000 -5.0000 6.0000 -8.0000 -126.0000
4th equati 6.0000 -7.0000 10.0000 0.0000 -15.0000 -34.0000
5th equati 13.0000 5.0000 -7.0000 8.0000 0.0000 16.0000

Input Coefficient and Constant Matrix:


2.0000 0.0000 -5.0000 3.0000 -1.0000
1.0000 3.0000 0.0000 -1.0000 7.0000
A= 12.0000 -4.0000 -5.0000 6.0000 -8.0000 B=
6.0000 -7.0000 10.0000 0.0000 -15.0000
13.0000 5.0000 -7.0000 8.0000 0.0000

LU Factorization
1.0000 0.0000 0.0000 0.0000 0.0000 2.0000 0.0000
0.5000 1.0000 0.0000 0.0000 0.0000 0.0000 3.0000
L= 6.0000 -1.3333 1.0000 0.0000 0.0000 U= 0.0000 0.0000
3.0000 -2.3333 1.0882 1.0000 0.0000 0.0000 0.0000
6.5000 1.6667 0.7529 2.2730 1.0000 0.0000 0.0000

Ly = B
1.0000 0.0000 0.0000 0.0000 0.0000 y1 -66.0000
0.5000 1.0000 0.0000 0.0000 0.0000 y2 98.0000
6.0000 -1.3333 1.0000 0.0000 0.0000 y3 = -126.0000
3.0000 -2.3333 1.0882 1.0000 0.0000 y4 -34.0000
6.5000 1.6667 0.7529 2.2730 1.0000 y5 16.0000

y1 -66.0000 x1 0.0000
y2 131.0000 x2 2.0000
y= y3 444.6667 X= x3 22.0000
y4 -14.2353 x4 20.0000
y5 -75.7841 x5 16.0000

Ux = y
2.0000 0.0000 -5.0000 3.0000 -1.0000 x1 -66.0000
0.0000 3.0000 2.5000 -2.5000 7.5000 x2 131.0000
0.0000 0.0000 28.3333 -15.3333 8.0000 x3 = 444.6667
0.0000 0.0000 0.0000 1.8529 -3.2059 x4 -14.2353
0.0000 0.0000 0.0000 0.0000 -4.7365 x5 -75.7841
-66.0000
98.0000
-126.0000
-34.0000
16.0000

-5.0000 3.0000 -1.0000


2.5000 -2.5000 7.5000
28.3333 -15.3333 8.0000
0.0000 1.8529 -3.2059
0.0000 0.0000 -4.7365
B.CROUT'S METHOD

Enter coefficient and constant of linear equations:


1st equati 2.0000 0.0000 -5.0000 3.0000 -1.0000 -66.0000
2nd equati1.0000 3.0000 0.0000 -1.0000 7.0000 98.0000
3rd equati 12.0000 -4.0000 -5.0000 6.0000 -8.0000 -126.0000
4th equati 6.0000 -7.0000 10.0000 0.0000 -15.0000 -34.0000
5th equati 13.0000 5.0000 -7.0000 8.0000 0.0000 16.0000

Input Coefficient and Constant Matrix:


2.0000 0.0000 -5.0000 3.0000 -1.0000
1.0000 3.0000 0.0000 -1.0000 7.0000
A= 12.0000 -4.0000 -5.0000 6.0000 -8.0000 B=
6.0000 -7.0000 10.0000 0.0000 -15.0000
13.0000 5.0000 -7.0000 8.0000 0.0000

LU Factorization
2.0000 0.0000 0.0000 0.0000 0.0000 1.0000 0.0000
1.0000 3.0000 0.0000 0.0000 0.0000 0.0000 1.0000
L= 12.0000 -4.0000 28.3333 0.0000 0.0000 U= 0.0000 0.0000
6.0000 -7.0000 30.8333 1.8529 0.0000 0.0000 0.0000
13.0000 5.0000 21.3333 4.2118 -4.7365 0.0000 0.0000

Ly = B
2.0000 0.0000 0.0000 0.0000 0.0000 y1 -66.0000
1.0000 3.0000 0.0000 0.0000 0.0000 y2 98.0000
12.0000 -4.0000 28.3333 0.0000 0.0000 y3 = -126.0000
6.0000 -7.0000 30.8333 1.8529 0.0000 y4 -34.0000
13.0000 5.0000 21.3333 4.2118 -4.7365 y5 16.0000

y1 -33.0000 x1 0.0000
y2 43.6667 x2 2.0000
y= y3 15.6941 X= x3 22.0000
y4 -7.6825 x4 20.0000
y5 16.0000 x5 16.0000

Ux = y
1.0000 0.0000 -2.5000 1.5000 -0.5000 x1 -33.0000
0.0000 1.0000 0.8333 -0.8333 2.5000 x2 43.6667
0.0000 0.0000 1.0000 -0.5412 0.2824 x3 = 15.6941
0.0000 0.0000 0.0000 1.0000 -1.7302 x4 -7.6825
0.0000 0.0000 0.0000 0.0000 1.0000 x5 16.0000
-66.0000
98.0000
-126.0000
-34.0000
16.0000

-2.5000 1.5000 -0.5000


0.8333 -0.8333 2.5000
1.0000 -0.5412 0.2824
0.0000 1.0000 -1.7302
0.0000 0.0000 1.0000
C.CHOLESKY'S METHOD

Enter coefficient and constant of linear equations:


1st equation 4.0000 2.0000 8.0000 0.0000 6.0000 276.0000
2nd equation 2.0000 65.0000 -4.0000 8.0000 -5.0000 122.0000
3rd equation 8.0000 -4.0000 98.0000 -10.0000 13.0000 2156.0000
4th equation 0.0000 8.0000 -10.0000 27.0000 9.0000 480.0000
5th equation 6.0000 -5.0000 13.0000 9.0000 20.0000 696.0000

Input Coefficient and Constant Matrix:


4.0000 2.0000 8.0000 0.0000 6.0000
2.0000 65.0000 -4.0000 8.0000 -5.0000
A= 8.0000 -4.0000 98.0000 -10.0000 13.0000
0.0000 8.0000 -10.0000 27.0000 9.0000
6.0000 -5.0000 13.0000 9.0000 20.0000

LL^T Factorization
2.0000 0.0000 0.0000 0.0000 0.0000 2.0000
1.0000 8.0000 0.0000 0.0000 0.0000 0.0000
L= 4.0000 -1.0000 9.0000 0.0000 0.0000 L^T= 0.0000
0.0000 1.0000 -1.0000 5.0000 0.0000 0.0000
3.0000 -1.0000 0.0000 2.0000 2.4495 0.0000

Ly = B
2.0000 0.0000 0.0000 0.0000 0.0000 y1
1.0000 8.0000 0.0000 0.0000 0.0000 y2
4.0000 -1.0000 9.0000 0.0000 0.0000 y3 =
0.0000 1.0000 -1.0000 5.0000 0.0000 y4
3.0000 -1.0000 0.0000 2.0000 2.4495 y5

y1 138.0000 x1 19.9444
y2 -2.0000 x2 -0.2593
y= y3 178.0000 X= x3 22.5926
y4 132.0000 x4 25.3333
y5 6.5320 x5 2.6667

L^Tx = y
2.0000 1.0000 4.0000 0.0000 3.0000 x1
0.0000 8.0000 -1.0000 1.0000 -1.0000 x2
0.0000 0.0000 9.0000 -1.0000 0.0000 x3 =
0.0000 0.0000 0.0000 5.0000 2.0000 x4
0.0000 0.0000 0.0000 0.0000 2.4495 x5
276.0000
122.0000
B= 2156.0000
480.0000
696.0000

1.0000 4.0000 0.0000 3.0000


8.0000 -1.0000 1.0000 -1.0000
0.0000 9.0000 -1.0000 0.0000
0.0000 0.0000 5.0000 2.0000
0.0000 0.0000 0.0000 2.4495

276.0000
122.0000
2156.0000
480.0000
696.0000

138.0000
-2.0000
178.0000
132.0000
6.5320

Das könnte Ihnen auch gefallen