summaryrefslogtreecommitdiff
path: root/1703/CH12/EX12.7/12_7.sce
diff options
context:
space:
mode:
Diffstat (limited to '1703/CH12/EX12.7/12_7.sce')
-rwxr-xr-x1703/CH12/EX12.7/12_7.sce13
1 files changed, 13 insertions, 0 deletions
diff --git a/1703/CH12/EX12.7/12_7.sce b/1703/CH12/EX12.7/12_7.sce
new file mode 100755
index 000000000..d866baf5b
--- /dev/null
+++ b/1703/CH12/EX12.7/12_7.sce
@@ -0,0 +1,13 @@
+clc
+//initialisation of variables
+dtp= 120 //in
+dpd= 48 //in
+vim= 1.25 //ft/sec
+vip= 5 //ft/sec
+lp = 600 //ft
+lm= 40 //ft
+//CALCULATIONS
+Rm= (dtp/dpd)^2/((lp/lm)*(vim/vip)^2)
+d= sqrt(4*Rm)
+//RESULTS
+printf ('Diameter = %.2f in ',d)