diff options
Diffstat (limited to '797/CH3/EX3.10.s/3_10_solution.sce')
-rw-r--r-- | 797/CH3/EX3.10.s/3_10_solution.sce | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/797/CH3/EX3.10.s/3_10_solution.sce b/797/CH3/EX3.10.s/3_10_solution.sce new file mode 100644 index 000000000..996f78e9f --- /dev/null +++ b/797/CH3/EX3.10.s/3_10_solution.sce @@ -0,0 +1,9 @@ +//Solution 3-10 +WD=get_absolute_file_path('3_10_solution.sce'); +datafile=WD+filesep()+'3_10_example.sci'; +clc; +exec(datafile) +R = D / 2 / 100; //radius of cylinder [m] +h = h / 100; +m = rho * (%pi * R**2 * h); +printf("The mass of lead required for hydrostat to attain depth of 10cm is %1.5f kg", m); |