summaryrefslogtreecommitdiff
path: root/2513/CH2/EX2.6
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2513/CH2/EX2.6
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 '2513/CH2/EX2.6')
-rwxr-xr-x2513/CH2/EX2.6/2_6.sce26
1 files changed, 26 insertions, 0 deletions
diff --git a/2513/CH2/EX2.6/2_6.sce b/2513/CH2/EX2.6/2_6.sce
new file mode 100755
index 000000000..d4c0eb083
--- /dev/null
+++ b/2513/CH2/EX2.6/2_6.sce
@@ -0,0 +1,26 @@
+clc
+//initialisation of variables
+a=12//in
+b=24//in
+r=500//gpm
+d=200//gpcd
+d1=150//gpcd
+p1=113//sq in
+p2=425//sq in
+v1=3//fps
+v2=2.35//cfs
+v3=9.42//cfs
+h=646000//gpd
+w=720000//gpd
+//CALCULATIONS
+D1=v2*h//gpd
+D2=v3*h//gpd
+W1=D1-w//gpd
+W2=D2-w//gpd
+R1=D1/d//people
+R2=D2/d//people
+S=W1/d1//people
+S1=W2/d1//people
+//RESULTS
+printf('the absence of fire service for a maximum draft=% f gpd',D2)
+printf('The residential fire flow requirements=% f gpd',W2)