summaryrefslogtreecommitdiff
path: root/884/CH7/EX7.1/Example7_1.sce
blob: 4c5fcb7cf4264a39e04437d36a8783d871f164dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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