summaryrefslogtreecommitdiff
path: root/3871/CH9/EX9.3/Ex9_3.sce
diff options
context:
space:
mode:
Diffstat (limited to '3871/CH9/EX9.3/Ex9_3.sce')
-rw-r--r--3871/CH9/EX9.3/Ex9_3.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/3871/CH9/EX9.3/Ex9_3.sce b/3871/CH9/EX9.3/Ex9_3.sce
new file mode 100644
index 000000000..2af2527a4
--- /dev/null
+++ b/3871/CH9/EX9.3/Ex9_3.sce
@@ -0,0 +1,14 @@
+//===========================================================================
+//chapter 9 example 3
+
+clc;clear all;
+
+//variable declaration
+H = 120; //number of holes on the rotating disc
+f = 5400; //frequency of output pulses in per second
+
+//calculations
+N = (f/(H))*60; //rotational speed in rpm
+
+//result
+mprintf("rotational speed = %3.2f rpm",N);