summaryrefslogtreecommitdiff
path: root/608/CH14/EX14.03/14_03.sce
diff options
context:
space:
mode:
Diffstat (limited to '608/CH14/EX14.03/14_03.sce')
-rwxr-xr-x608/CH14/EX14.03/14_03.sce10
1 files changed, 10 insertions, 0 deletions
diff --git a/608/CH14/EX14.03/14_03.sce b/608/CH14/EX14.03/14_03.sce
new file mode 100755
index 000000000..4e14a7043
--- /dev/null
+++ b/608/CH14/EX14.03/14_03.sce
@@ -0,0 +1,10 @@
+//Problem 14.03: An alternating current completes 5 cycles in 8 ms. What is its frequency?
+
+//initializing the variables:
+T = (8E-3)/5; // in secs
+
+//calculation:
+f = 1/T
+
+printf("\n\n Result \n\n")
+printf("\n Frequency f = %.0f Hz\n",f) \ No newline at end of file