diff options
Diffstat (limited to '797/CH2/EX2.7.s/2_07_solution.sce')
-rw-r--r-- | 797/CH2/EX2.7.s/2_07_solution.sce | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/797/CH2/EX2.7.s/2_07_solution.sce b/797/CH2/EX2.7.s/2_07_solution.sce new file mode 100644 index 000000000..5c72b3c86 --- /dev/null +++ b/797/CH2/EX2.7.s/2_07_solution.sce @@ -0,0 +1,11 @@ +//Solution 2-6 +WD=get_absolute_file_path('2_07_solution.sce') +datafile=WD+filesep()+'2_07_example.sci' +clc; +exec(datafile) +//conversion +h = h /100; //from [cm] to [m] + +deltaP = rho * g * h +deltaP = deltaP / 10**5; //conversion from [N/m^2] to [atm] +printf("The pressure at top of water column is less than atm pressure by %1.3f atm", deltaP);
\ No newline at end of file |