summaryrefslogtreecommitdiff
path: root/1445/CH1/EX1.43/Ex1_43.sce
blob: 58c70988efe2a32eccb255a9086792c4bf94a560 (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
//CHAPTER 1- D.C. CIRCUIT ANALYSIS AND NETWORK THEOREMS 
//Example 43

clc;
disp("CHAPTER 1");
disp("EXAMPLE 43");

//VARIABLE INITIALIZATION
Is1=2;                          //first current source in Amperes
Is2=4;                          //second current source in Amperes
v=2;                            //in Volts
r1=200;                         //in Ohms
r2=100;                         //in Ohms
r3=4;                           //in Ohms

//SOLUTION
req1=34;
Ia=Is2*(r3/req1);
req2=24;
Iab=Is1*(req2/req1);
I=Ia+Iab;
vab=I*10;
disp(sprintf("By Superposition Theorem the voltage Vab is %f V",vab));

//END