summaryrefslogtreecommitdiff
path: root/3428/CH22/EX14.22.3/Ex14_22_3.sce
blob: c6fda3f7e547afd1df50690a9fcd25eeb64c27d5 (plain)
1
2
3
4
5
6
7
8
9
//Section-14,Example-2,Page no.-PC.50
//To calculate the height to which liquid B rises.
clc;
//(y_B/y_A)=(h_B*d_B)/(h_A*d_A)
h_A=0.01
d=1/2                                //d=d_A/d_B
y=1/2                               //y=y_A/y_B
h_B=h_A*d*y
disp(h_B,'The height to which liquid B rises(m)')