diff options
Diffstat (limited to '797/CH5/EX5.8.s/5_08_solution.sce')
-rw-r--r-- | 797/CH5/EX5.8.s/5_08_solution.sce | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/797/CH5/EX5.8.s/5_08_solution.sce b/797/CH5/EX5.8.s/5_08_solution.sce new file mode 100644 index 000000000..f1b946944 --- /dev/null +++ b/797/CH5/EX5.8.s/5_08_solution.sce @@ -0,0 +1,8 @@ +//Solution 5-08 +WD=get_absolute_file_path('5_08_solution.sce'); +datafile=WD+filesep()+'5_08_example.sci'; +clc; +exec(datafile) +h_3 = h_3 / 100; //conversion from [cm] to [m] +V_1 = sqrt(2 * g * h_3); //application of Bernoulli equation +printf("Velocity of water in pipe is %1.2f m/s", V_1); |