blob: 5c72b3c86d5c90cc381e4e7eac2db0f8f64b59a7 (
plain)
1
2
3
4
5
6
7
8
9
10
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);
|