summaryrefslogtreecommitdiff
path: root/2384/CH5/EX5.9
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2384/CH5/EX5.9
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 '2384/CH5/EX5.9')
-rwxr-xr-x2384/CH5/EX5.9/ex5_9.sce21
1 files changed, 21 insertions, 0 deletions
diff --git a/2384/CH5/EX5.9/ex5_9.sce b/2384/CH5/EX5.9/ex5_9.sce
new file mode 100755
index 000000000..91c5ebdc9
--- /dev/null
+++ b/2384/CH5/EX5.9/ex5_9.sce
@@ -0,0 +1,21 @@
+// Exa 5.9
+clc;
+clear;
+close;
+format('v',6)
+// Given data
+W1 = 300;// in kW
+W2 = 100;// in kW
+V_L= 2000;// in V
+Eta= 90/100;
+P = W1+W2;// in kW
+disp(P,"The power input in kW is");
+// tan(phi) = sqrt(3)*((W1-W2)/(W1+W2));
+phi = atand(sqrt(3)*((W1-W2)/(W1+W2)));
+pf = cosd(phi);// power factor
+disp(pf,"The power factor is");
+// P = sqrt(3)*V_L*I_L*cosd(phi);
+I_L = (P*10^3)/(sqrt(3)*V_L*pf);// in A
+disp(I_L,"The line current in A is");
+output = P*Eta;// in kW
+disp(output,"The power output in kW is");