diff options
Diffstat (limited to '1445/CH1/EX1.54/ch1_ex_54.sce')
-rw-r--r-- | 1445/CH1/EX1.54/ch1_ex_54.sce | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/1445/CH1/EX1.54/ch1_ex_54.sce b/1445/CH1/EX1.54/ch1_ex_54.sce new file mode 100644 index 000000000..92c5e6fcc --- /dev/null +++ b/1445/CH1/EX1.54/ch1_ex_54.sce @@ -0,0 +1,30 @@ +//CHAPTER 1- D.C. CIRCUIT ANALYSIS AND NETWORK THEOREMS +//Example 54 + +disp("CHAPTER 1"); +disp("EXAMPLE 54"); + +//VARIABLE INITIALIZATION +v=5; //voltage source in Volts +r1=1; //LHS resistance in Ohms +r2=5; //in Ohms +r3=1; //in Ohms +r4=1; //RHS resistance in Ohms +I=10; //current source in Amperes + +//SOLUTION + +//on deactivating the current source, current I1 flows in the circuit +req1=r1+r3+r4; +I1=v/req1; +vab1=v-(I1*r1); //(I1*r1) is voltage drop across 1Ω resistance +I2=I/req1; +vab2=vab1+(I2*r1); //(I2*r1) is voltage drop across 1Ω resistance +rth=r1+((r3*r4)/(r3+r4)); +Ith=vab2/(rth+r2); +Rth=(6/5)+(3/4); +req2=10+2; +I3=9/12; +disp(sprintf("The value of the current is %f A",I3)); + +//END |