summaryrefslogtreecommitdiff
path: root/884/CH7/EX7.2/Example7_2.sce
diff options
context:
space:
mode:
Diffstat (limited to '884/CH7/EX7.2/Example7_2.sce')
-rwxr-xr-x884/CH7/EX7.2/Example7_2.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/884/CH7/EX7.2/Example7_2.sce b/884/CH7/EX7.2/Example7_2.sce
new file mode 100755
index 000000000..6de825568
--- /dev/null
+++ b/884/CH7/EX7.2/Example7_2.sce
@@ -0,0 +1,14 @@
+//calculation of frequency of a wave
+
+clear;
+clc;
+
+printf("\t Example 7.2\n");
+
+lambda=522*10^-9;//wavelength, m
+c=3*10^8;//speed of light in vacuum, m/s
+v=c/lambda;//frequency, Hz
+
+printf("\t the frequency of the wave is : %4.2f *10^14 Hz\n",v*10^-14);
+
+//End