summaryrefslogtreecommitdiff
path: root/3574/CH1/EX1.8/EX1_8.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3574/CH1/EX1.8/EX1_8.sce
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '3574/CH1/EX1.8/EX1_8.sce')
-rw-r--r--3574/CH1/EX1.8/EX1_8.sce26
1 files changed, 26 insertions, 0 deletions
diff --git a/3574/CH1/EX1.8/EX1_8.sce b/3574/CH1/EX1.8/EX1_8.sce
new file mode 100644
index 000000000..dff0305b4
--- /dev/null
+++ b/3574/CH1/EX1.8/EX1_8.sce
@@ -0,0 +1,26 @@
+// Example 1.8
+// Computation of (a) Number of cycles per revolution (b) Number of electrical
+// degrees per revolution (c) Frequency in hertz
+// Page No. 31
+
+clc;
+clear all;
+close;
+
+// Given data
+P=80; // Number of poles
+rpers=20; // Revolutions per second
+
+// (a) Number of cycles per revolution
+n=P/2;
+
+// (b) Number of electrical degrees per revolution
+Elecdeg=360*P/2;
+
+// (c) Frequency in hertz
+f=P*rpers/2;
+
+//Display result on command window
+printf("\n Number of cycles per revolution = %0.0f cycles ",n);
+printf("\n Number of electrical degrees per revolution = %0.0f ",Elecdeg);
+printf("\n Frequency in hertz = %0.0f Hz ",f);