summaryrefslogtreecommitdiff
path: root/215/CH12/EX12.5/ex12_5.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /215/CH12/EX12.5/ex12_5.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 '215/CH12/EX12.5/ex12_5.sce')
-rwxr-xr-x215/CH12/EX12.5/ex12_5.sce18
1 files changed, 18 insertions, 0 deletions
diff --git a/215/CH12/EX12.5/ex12_5.sce b/215/CH12/EX12.5/ex12_5.sce
new file mode 100755
index 000000000..3a8a5556f
--- /dev/null
+++ b/215/CH12/EX12.5/ex12_5.sce
@@ -0,0 +1,18 @@
+clc
+//Example 12.5
+//Calculate amplitude of line current
+disp('Given')
+disp('Line voltage = 300V, Power factor=0.8(lag), Phase power = 1200W')
+Vline=300;pf=0.8;PW=1200;
+disp('1200W will be consumed as 400W in each phase')
+Vp=400
+//Phase current be Ip
+Ip=Vp/(Vline*pf)
+//Let amplitude of line current be IL
+IL=Ip*sqrt(3)
+printf("Line current=%3.2f A \n",IL)
+//Let Zp be the phase impedance
+Zpmag=Vline/Ip
+//Sice power factor is 'lagging'
+Zpang=(acos(0.8)*180)/%pi
+printf("Phase impedance = %d(%3.2f deg)ohm",Zpmag,Zpang); \ No newline at end of file