summaryrefslogtreecommitdiff
path: root/2132/CH7/EX7.5/Example7_5.sce
blob: ae133c072f8d4a95364a748e42aca3f78e24afc2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
////Example 7.5
clc;
clear;
close;
format('v',6);
//Given data :
D=30/100;//meter
L=500;//meter
Q=300*10^-3;//m^2/sec
f=0.0008;//coeff. of friction
v=Q/(%pi/4*D^2);//m/s
g=9.81;//gravity constanty
hf=4*f*L*v^2/D/2/g;//meter
disp(hf,"Difference in elevation in meter : ");
//Answer in the book is wrong.