diff options
author | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
commit | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch) | |
tree | dbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /1445/CH1/EX1.54 | |
parent | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff) | |
download | Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2 Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip |
initial commit / add all books
Diffstat (limited to '1445/CH1/EX1.54')
-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 |