You are on page 1of 5

TERM TEST - NUMERICAL METHODS

Malvin S. Lardizabal BSEE - 1LEP

1. The following system of equations was generated by applying the Node voltage law
to a given circuit.
17V1 - 8V2 - 3V3 = 480
-2V1 + 6V2 - 3V3 = 0
-V1 - 4V2 + 13V3 = 0
Solve for V1, V2 and V3 using LU Decomposition.

A X B
17 -8 -3 V1 480
-2 6 -3 V2 0
-1 -4 13 V3 0

17 -8 -3 17 -8 -3
[U] = 0 5.058824 -3.352941 [U] = 0 5.058824 -3.352941
0 -4.470588 12.82353 0 0 9.860465

1 0 0
[L] = -0.117647 1 0
-0.058824 -0.883721 1

[A] = [L] [U]


[A] [L] [U]
17 -8 -3 1 0 0 17 -8 -3
-2 6 -3 -0.117647 1 0 5.058824 -3.352941
-1 -4 13 -0.058824 -0.883721 1 0 0 9.860465

Forward Substitution:
[L] [B] [D]
1 0 0 480 D1 480
-0.117647 1 0 0 D2 56.47059
-0.058824 -0.883721 1 0 D3 78.13953

Backward Substitution:
[U] [D] [X]
17 -8 -3 480 V1 37.358
0 5.058824 -3.352941 56.47059 V2 16.415
0 0 9.860465 78.13953 V3 7.9245
2. The following system of equation was generated by applying the Mesh current law
to a given circuit.
6I1 - 4I3 + Vs = 0
8I2 - 8I3 - Vs = -20
-4I1 - 8I2 + 18I3 = 0
-I1 + I2 = 10
Solve forI1, I2, I3 and Vs using Matrix Inverse [X] = [A-1] [B]

6 0 -4 1 0
0 8 -8 -1 -20
-4 -8 18 0 0
-1 1 0 0 10

8 -8 -1
DET= 6 -8 18 0 DET= 108
1 0 0

8 -8 -1
A11= -8 18 0 = 18
1 0 0
0 -8 -1
A12=- -4 18 0 = -18
-1 0 0
0 8 -1
A13= -4 -8 0 = 12
-1 1 0
0 8 -8
A14=- -4 -8 18 = -48
-1 1 0
0 -4 1
A21= -8 18 0 = -18
1 0 0
6 -4 1
A22=- -4 18 0 = 18
-1 0 0
6 0 1
A23= -4 -8 0 = -12
-1 1 0
6 0 -4
A24=- -4 -8 18 -60
=
-1 1 0
0 -4 1
A31= 8 -8 -1 = 12
1 0 0
6 -4 1
A32= - 0 8 -1 = 4
-1 0 0
6 0 1
A33= 0 8 -1 = 14
-1 1 0
6 0 -4
A34=- 0 8 -8 = 16
-1 1 0
0 -4 1
A41= 8 -8 -1 = 48
-8 18 0
6 -4 1
A42= 0 -8 -1 = 60
-4 18 0
6 0 1
A43=- 0 8 -1 = -16
-4 -8 0
6 0 -4
A44= 0 8 -8 = 352
-4 -8 18

18 18 12 -48
A-1= 1/108 18 18 12 60
12 12 14 16
48 -60 16 352

I1 = 7.77
I2 = 2.222
I3 = -0.741
Vs = 43.704

You might also like