blob: 747466c211e040b3156ae559238cc340c964d7b5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
//Network Theorem 2
//pg no 3.4
//example 3.2
disp("When 4-A source is acting alone:");
disp("By current-division formula :");
I1=3.33*(3.53/(6+3.53));
printf("I1=3.33*(3.53/(6+3.53)) = %.2f A (down)", I1);
disp("When 10-V source is acting alone:");
disp("By current-division formula :");
I2=0.833*(3.53/(6+3.53));
printf("I2=0.833*(3.53/(6+3.53))= %.2f A (up)", I2);
disp("When 3-A source is acting alone:");
disp("By current-division formula :");
I3=3*(3.53/(6+3.53));
printf("I3=3*(3.53/(6+3.53))= %.2f A (down)", I3);
disp("By superposition theorem:");
I=I1-I2+I3;
printf("\nI=I1-I2+I3=1.23-0.31+1.11= %.2f A (down)", I);
|