diff options
Diffstat (limited to '797/CH5/EX5.2.s/5_02_solution.sce')
-rw-r--r-- | 797/CH5/EX5.2.s/5_02_solution.sce | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/797/CH5/EX5.2.s/5_02_solution.sce b/797/CH5/EX5.2.s/5_02_solution.sce new file mode 100644 index 000000000..48f6699d6 --- /dev/null +++ b/797/CH5/EX5.2.s/5_02_solution.sce @@ -0,0 +1,9 @@ +//Solution 5-02 +WD=get_absolute_file_path('5_02_solution.sce'); +datafile=WD+filesep()+'5_02_example.sci'; +clc; +exec(datafile) +D_jet = D_jet * 10^(-3); //converting jet dia from [mm] to [m] +t = (sqrt(h_0)-sqrt(h_2)) / sqrt(g / 2) * (D_tank / D_jet)^2; +t = t / 60; //converitng time from [s] to [min] +printf("Time required for water level to drop from %1.2f m to %1.2f m is %1.1f min", h_0, h_2, t); |