diff options
Diffstat (limited to '884/CH7/EX7.1/Example7_1.sce')
-rwxr-xr-x | 884/CH7/EX7.1/Example7_1.sce | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/884/CH7/EX7.1/Example7_1.sce b/884/CH7/EX7.1/Example7_1.sce new file mode 100755 index 000000000..4c5fcb7cf --- /dev/null +++ b/884/CH7/EX7.1/Example7_1.sce @@ -0,0 +1,14 @@ +//calculation of speed of a wave
+
+clear;
+clc;
+
+printf("\t Example 7.1\n");
+
+lambda=17.4;//wavelength, cm
+v=87.4;//frequency, Hz
+u=lambda*v;//speed of wave, cm/s
+
+printf("\t the speed of a wave is : %4.2f *10^3 cm/s\n",u*10^-3);
+
+//End
|