summaryrefslogtreecommitdiff
path: root/3758/CH1/EX1.15/Ex1_15.sce
blob: 6b6cadc9a647b2946280ab10824845824cc53ee9 (plain)
1
2
3
4
5
6
7
8
9
10
clc;
dp=840 ;// pressure in kg/cm^2
w=1025; // specific weight of water in kg/m^3
k=24*10^3; // bulk modulus of elasticity in kg/cm^2
v=dp/k; //v =dv/v calculating change in volume
s=1/w; // calculating specific volume of water at surface of ocean in m^3/kg
dv=v/w; // calculating change in specific volume between surface and depth in m^3/kg
v1=s-dv; // calculating specific volume at depth
w1=1/v1; // calculating specific weight of water at depth
printf('specific weight of water at depth is %f kg/m^3',w1);