summaryrefslogtreecommitdiff
path: root/896/CH2/EX2.12/12.sce
blob: 135182d704bb8784c6f64bf6052dffa1ea749fa6 (plain)
1
2
3
4
5
6
7
8
9
clc
//wooden block floating in two phase mix of water and gasoline
//calc fraction of block in water
SG_wood=0.96;//Specific gravity
SG_gasoline=0.72;
//Let r be the ratio - V_water/V_wood
r=(SG_wood-SG_gasoline)/(1-SG_gasoline);
disp("Fraction of wood in water")
disp(r)