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.38 | |
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.38')
-rw-r--r-- | 1445/CH1/EX1.38/ch1_ex_38.sce | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/1445/CH1/EX1.38/ch1_ex_38.sce b/1445/CH1/EX1.38/ch1_ex_38.sce new file mode 100644 index 000000000..0bad64aec --- /dev/null +++ b/1445/CH1/EX1.38/ch1_ex_38.sce @@ -0,0 +1,37 @@ +//CHAPTER 1- D.C. CIRCUIT ANALYSIS AND NETWORK THEOREMS +//Example 38 + +disp("CHAPTER 1"); +disp("EXAMPLE 38"); + +//VARIABLE INITIALIZATION +I=2; //current source in Amperes +r1=2; //in Ohms +r2=1; //in Ohms +r3=1; //in Ohms +r4=2; //in Ohms + +//SOLUTION + +//Thevenin Equivalent circuit +I1=1; //since there is equal resistance of 3Ω, hence, current=1A +vth=(I1*r2)+(-I1*r4); +req1=r1+r2; +req2=r3+r4; +rth=(req1*req2)/(req1+req2); +disp("THEVENIN EQUIVALENT CIRCUIT IS-"); +disp(sprintf(" Thevenin voltage= %d V",vth)); +disp(sprintf(" Thevenin resistance= %f Ω",rth)); + +//Norton Equivalent circuit +v1=I/((1/r2)+(1/r4)); +v2=-I/((1/r3)+(1/r1)); +req1=r1+r2; +req2=r3+r4; +rn=(req1*req2)/(req1+req2); +Isc=(v1/r4)+v2; +disp("NORTON EQUIVALENT CIRCUIT IS-"); +disp(sprintf(" Norton current= %f A",Isc)); +disp(sprintf(" Norton resistance= %f Ω",rn)); + +//END |