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 /608/CH19/EX19.15/19_15.sce | |
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 '608/CH19/EX19.15/19_15.sce')
-rwxr-xr-x | 608/CH19/EX19.15/19_15.sce | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/608/CH19/EX19.15/19_15.sce b/608/CH19/EX19.15/19_15.sce new file mode 100755 index 000000000..52c2c97be --- /dev/null +++ b/608/CH19/EX19.15/19_15.sce @@ -0,0 +1,16 @@ +//Problem 19.15: Two wattmeters are connected to measure the input power to a balanced 3-phase load by the two-wattmeter method. If the instrument readings are 8 kW and 4 kW, determine (a) the total power input and (b) the load power factor.
+
+//initializing the variables:
+Pi1 = 8000; // in Watts
+Pi2 = 4000; // in Watts
+
+//calculation:
+//Total input power
+Pi = Pi1 + Pi2
+phi = atan((Pi1 - Pi2)*(3^0.5)/(Pi1 + Pi2))
+//Power factor
+pf = cos(phi)
+
+printf("\n\n Result \n\n")
+printf("\n (a)power input is %.1E W",Pi)
+printf("\n (b)power factor is %.3f",pf)
\ No newline at end of file |