diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /1445/CH1/EX1.2 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '1445/CH1/EX1.2')
-rw-r--r-- | 1445/CH1/EX1.2/Ex1_2.sce | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/1445/CH1/EX1.2/Ex1_2.sce b/1445/CH1/EX1.2/Ex1_2.sce new file mode 100644 index 000000000..d9885ec94 --- /dev/null +++ b/1445/CH1/EX1.2/Ex1_2.sce @@ -0,0 +1,34 @@ +//CHAPTER 1- D.C. CIRCUIT ANALYSIS AND NETWORK THEOREMS +//Example 2 + +disp("CHAPTER 1"); +disp("EXAMPLE 2"); + +//VARIABLE INITIALIZATION +//star values ra, rc and rd +ra=2; //in Ohms +rc=4; //in Ohms +rd=3; //in Ohms +r1=5; //in Ohms +r2=4; //in Ohms +r3=6; //in Ohms + +//SOLUTION +//converting star with points A, C and D into delta ACD +r=(ra*rc)+(rc*rd)+(rd*ra); //'r' is the resistance that appears in the numerator of the equation of star-delta conversion + +//delta values rac, rcd and rad +rac=r/rd; +rcd=r/ra; +rad=r/rc; +req1=(r1*rad)/(r1+rad); //equivalent resistance between A and D +req2=(r2*rcd)/(r2+rcd); //equivalent resistance between C and D +req3=req1+req2; //series combination of resistors +req4=(req3*rac)/(req3+rac); //parallel combination of resistors +req5=req4+r3; +req6=(req5*7)/(req5+7); +disp(sprintf("The eqivalent resistance between points A and B is %.2f Ω",req6)); + +//END + + |