summaryrefslogtreecommitdiff
path: root/1727/CH7/EX7.21/7_21.sce
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.21/7_21.sce
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.21/7_21.sce')
-rwxr-xr-x1727/CH7/EX7.21/7_21.sce19
1 files changed, 19 insertions, 0 deletions
diff --git a/1727/CH7/EX7.21/7_21.sce b/1727/CH7/EX7.21/7_21.sce
new file mode 100755
index 000000000..9d8579ea5
--- /dev/null
+++ b/1727/CH7/EX7.21/7_21.sce
@@ -0,0 +1,19 @@
+clc
+//Initialization of variables
+e=0.8
+output=400 //kW
+H=150 //m
+rho=1000
+g=9.81
+f=0.028
+l=1250 //m
+//calculations
+gam=rho*g
+inpu=output/e
+Q=inpu*10^3 /(2/3 *gam*H)
+hl=1/3 *H
+d5= f*l*Q^2 /(2*g* %pi/4 * %pi/4 *hl)
+d=d5^(1/5)
+//results
+printf("Smallest diameter of pen stock = %d cm",d*100)
+