summaryrefslogtreecommitdiff
path: root/1445/CH2/EX2.6
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1445/CH2/EX2.6
downloadScilab-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/CH2/EX2.6')
-rw-r--r--1445/CH2/EX2.6/Ex2_6.sce29
1 files changed, 29 insertions, 0 deletions
diff --git a/1445/CH2/EX2.6/Ex2_6.sce b/1445/CH2/EX2.6/Ex2_6.sce
new file mode 100644
index 000000000..378b29151
--- /dev/null
+++ b/1445/CH2/EX2.6/Ex2_6.sce
@@ -0,0 +1,29 @@
+//CHAPTER 2- STEADY-STATE ANALYSIS OF SINGLE-PHASE A.C. CIRCUIT
+//Example 6
+
+disp("CHAPTER 2");
+disp("EXAMPLE 6");
+
+//VARIABLE INITIALIZATION
+f=50; //in Hertz
+I1=20; //in Amperes
+pf1=0.75; //power factor
+v=230; //in Volts
+pf2=0.9; //power factor(lagging)
+
+//SOLUTION
+//V.I1.cos(Φ1) = P
+phi1=acos(pf1);
+res1=tan(phi1); //result1 = tan(Φ1)
+phi2=acos(pf2);
+res2=tan(phi2); //result2 = tan(Φ2)
+Ic=I1*pf1*(res1-res2);
+w=2*%pi*f; //w=2.pi.f
+c=Ic/(v*w);
+disp(sprintf("The value of capacitance is %5.2f μF",c*(10^6)));//text book answer is 82.53 mF
+Qc=v*Ic; // reactive power in kVAr
+disp(sprintf("The reactive power is %6.4f kVAR",Qc/(10^3)));//text book answer is 1.3716
+I2=I1*(pf1/pf2); //I1.cos(Φ1) = I2.cos(Φ2)
+disp(sprintf("The new supply current is %5.2f A",I2));
+
+//END