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 /3434/CH10/EX10.2/Ex10_2.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 '3434/CH10/EX10.2/Ex10_2.sce')
-rw-r--r-- | 3434/CH10/EX10.2/Ex10_2.sce | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/3434/CH10/EX10.2/Ex10_2.sce b/3434/CH10/EX10.2/Ex10_2.sce new file mode 100644 index 000000000..12f33460b --- /dev/null +++ b/3434/CH10/EX10.2/Ex10_2.sce @@ -0,0 +1,17 @@ +clc
+// given data
+a=2.0/2 // in m
+T=8.0 // in secs
+rho=1025.0 // in kg/m^3
+w=2*%pi/T // angular frequency in radian/sec
+g=9.8 // gravitational acceleration in m/sec^2
+
+Lamda=2*(%pi)*g/(w**2) // in m
+printf( "wavelength is %.2f m",Lamda)
+v=g/w // phase velocity in m/s
+printf( " \n phase velocity is %.2f m/s",v)
+P=rho*(g**2)*(a**2)*T/(8*%pi*1000) // power in wave in kW/m
+printf( " \n power in wave is %.2f kW/m",P)
+E=P*8.76 // average annual wave energy in mWh/m
+
+printf( "\n average annual wave energy is %.1f mWh/m",E)
|