diff options
Diffstat (limited to '797/CH5/EX5.5.s/5_05_solution.sce')
-rw-r--r-- | 797/CH5/EX5.5.s/5_05_solution.sce | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/797/CH5/EX5.5.s/5_05_solution.sce b/797/CH5/EX5.5.s/5_05_solution.sce new file mode 100644 index 000000000..aa21fbfa5 --- /dev/null +++ b/797/CH5/EX5.5.s/5_05_solution.sce @@ -0,0 +1,8 @@ +//Solution 5-05 +WD=get_absolute_file_path('5_05_solution.sce'); +datafile=WD+filesep()+'5_05_example.sci'; +clc; +exec(datafile) +P_gauge = P_gauge * 1000; //conversion from [kPa] to [Pa] +z_2 = P_gauge / (rho * g); //from Bernoulli equation +printf("The water jet can rise as high as %1.4f m into the sky", z_2); |