diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /1991/CH3/EX3.5/5.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '1991/CH3/EX3.5/5.sce')
-rwxr-xr-x | 1991/CH3/EX3.5/5.sce | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/1991/CH3/EX3.5/5.sce b/1991/CH3/EX3.5/5.sce new file mode 100755 index 000000000..03d668708 --- /dev/null +++ b/1991/CH3/EX3.5/5.sce @@ -0,0 +1,16 @@ +clc
+clear
+//input data
+amp=3.4*10^-5 //amplitude of the wave
+af=5.7*10^2 //angular frequency
+k=20 //wavenumber
+//calculation
+//wave frequency
+f=af/(2*%pi)
+l=(2*%pi)/k
+v=f*l
+printf("the wave frequency is %3.3f and the speed is %3.3f m/s",f,v)
+//calculating greatest speed for the wave to pass through
+vmax=af*amp //greatest speed
+//output
+printf("\nthe greatest value of speed for the wave to pass through is %3.3f m/s",vmax)
|