blob: 4633a5aeb41103dbc8100768515e1489ba76dc07 (
plain)
1
2
3
4
5
6
7
8
|
v2=0.0112; //final volume in m^3
v1=0.0113; //initial volume in m^3
dv=v2-v1; // calculating change in volume
p1=6.87*10^6; //initial pressure in N/m^2
p2=13.73*10^6; //final pressure in N/m^2
dp=p2-p1; //calculating change in pressure
k=-dp/(dv/v1); //calculating bulk modulus of elasticity
printf('bulk modulus of elasticity is %f N/m^2',k);
|