summaryrefslogtreecommitdiff
path: root/608/CH13/EX13.01/13_01.sce
blob: 754cd0c3429a05c9df8bd811dc4b48b3f0093cd5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
//Problem 13.01: (a) Find the unknown currents marked in Figure 13.3(a). (b) Determine the value of e.m.f. E in Figure 13.3(b).

//initializing the variables:
Iab = 50; // in ampere
Ibc = 20; // in ampere
Iec = 15; // in ampere
Idf = 120; // in ampere
Ifg = 40; // in ampere
Iab = 50; // in ampere
I = 2; // in ampere
V1 = 4; // in volts
V2 = 3; // in volts
V3 = 6; // in volts
R1 = 1; // in ohms
R2 = 2; // in ohms
R3 = 2.5; // in ohms
R4 = 1.5; // in ohms

//calculation:
I1 = Iab - Ibc
I2 = Ibc + Iec
I3 = I1 - Idf
I4 = Iec - I3
I5 = Idf - Ifg
// Applying Kirchhoff’s voltage law and moving clockwise around the loop of Figure 13.3(b) starting at point A:
E = I*R2 + I*R3 + I*R4 + I*R1 - V2 - V3 + V1

printf("\n\n Result \n\n") 
printf("\n (a) unknown currents I1, I2, I3, I4, I5 are %.0fA, %.0fA, %.0fA, %.0fA, %.0fA respetively",I1, I2, I3, I4, I5)
printf("\n (b) value of e.m.f. E = %.0f Volts",E)