diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /1962/CH9/EX9.5/example9_5.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '1962/CH9/EX9.5/example9_5.sce')
-rwxr-xr-x | 1962/CH9/EX9.5/example9_5.sce | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/1962/CH9/EX9.5/example9_5.sce b/1962/CH9/EX9.5/example9_5.sce new file mode 100755 index 000000000..ce9ff27b3 --- /dev/null +++ b/1962/CH9/EX9.5/example9_5.sce @@ -0,0 +1,16 @@ +
+//example 9.5
+//page 319
+clc; funcprot(0);
+//initialisation of variable
+epsilon=0.025;//roughness
+L=500;
+pi=3.14;
+g=9.81;
+D=30/100;
+Q=0.1;
+K=pi/4*sqroot(2*g)*(2*log10(D*100/epsilon)+1.14)*D^2.5;
+S=(Q/K)^2;
+hf=S*L;
+disp(hf,"head loss(m)=");
+clear
|