summaryrefslogtreecommitdiff
path: root/380/CH1/EX1.3/ex1_3.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /380/CH1/EX1.3/ex1_3.sce
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 '380/CH1/EX1.3/ex1_3.sce')
-rwxr-xr-x380/CH1/EX1.3/ex1_3.sce25
1 files changed, 25 insertions, 0 deletions
diff --git a/380/CH1/EX1.3/ex1_3.sce b/380/CH1/EX1.3/ex1_3.sce
new file mode 100755
index 000000000..9f3d3501f
--- /dev/null
+++ b/380/CH1/EX1.3/ex1_3.sce
@@ -0,0 +1,25 @@
+//Caption:Finding the value of capacitor
+//Ex no.1.3
+clc;
+clear;
+close;
+I=10;//Current drawn by the load (in Amperes)
+pf1=0.5;//lagging power factor
+pf2=0.8;
+Q1=acosd(pf1);
+Q2=acosd(pf2);
+I_L=10*(cosd(-Q1)+%i *sind(-Q1));//in Amperes
+V=120;//source voltage (in Volts)
+f=60;//frequency of source (in Hertz)
+//Refer to fig 1.6(b)
+//I_Lc=I_L+I_c
+S=V*conj (I_L);//complex power absorbed by load (in Watts)
+//On connecting capacitor across load current (I) have 0.8pf lagging
+I_Lco=real (S)/(V*pf2);// current supplied by load after connecting capacitor (in Amperes)
+I_Lc=I_Lco*(cosd(-Q2)+%i*(sind(-Q2)));// in Amperes
+I_c=I_Lc-I_L;//in Amperes
+Z_c=V/I_c;//capacitive impedance (in Ohms)
+//Z_c=-jX_c
+X_c=Z_c/(-%i);//Capacitive reactance
+C=1/(2*%pi*f*X_c);
+disp(real (C),'Value of capacitance (in Farad) is=') \ No newline at end of file