summaryrefslogtreecommitdiff
path: root/1727/CH7/EX7.8
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1727/CH7/EX7.8
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '1727/CH7/EX7.8')
-rwxr-xr-x1727/CH7/EX7.8/7_8.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/1727/CH7/EX7.8/7_8.sce b/1727/CH7/EX7.8/7_8.sce
new file mode 100755
index 000000000..1e21a893a
--- /dev/null
+++ b/1727/CH7/EX7.8/7_8.sce
@@ -0,0 +1,15 @@
+clc
+//Initialization of variables
+g=9.81 //m/s^2
+rho=10^3 //kg/m^3
+e=0.03*10^-2 //m
+l=3000 //m
+Q=300*10^-3 //m^3/s
+nu=10^-5 //m^2/s
+hl=24 //m
+//calculations
+d5f= l*Q/(%pi/4) * Q/(%pi/4) /(hl*2*g)
+f=0.022
+d=(d5f*f)^(1/5)
+//results
+printf("Size of the required pipe = %d cm",d*100)