summaryrefslogtreecommitdiff
path: root/3720/CH5/EX5.2/Ex5_2.sce
diff options
context:
space:
mode:
Diffstat (limited to '3720/CH5/EX5.2/Ex5_2.sce')
-rw-r--r--3720/CH5/EX5.2/Ex5_2.sce13
1 files changed, 13 insertions, 0 deletions
diff --git a/3720/CH5/EX5.2/Ex5_2.sce b/3720/CH5/EX5.2/Ex5_2.sce
new file mode 100644
index 000000000..b9acd38c6
--- /dev/null
+++ b/3720/CH5/EX5.2/Ex5_2.sce
@@ -0,0 +1,13 @@
+//Example 5_2
+clc;clear;funcprot(0);
+// Given values
+h_0=4;
+h_2=2;// Corresponding heights in ft
+D_tank=3*12;
+D_jet=0.5;// Corresponding diameters in inch
+g=32.2;// The acceleration due to gravity in ft/s^2
+
+// Calculation
+t=((sqrt(h_0)-sqrt(h_2))/sqrt(g/2))*((D_tank/D_jet)^2);
+t=t/60;// Convert seconds to minutes
+printf('The time of discharge,t=%0.1f min\n',t);