blob: 2a93b3fe587f08bd760e9017348c1188e47a4edc (
plain)
1
2
3
4
5
6
7
|
//Solution 1-03
WD=get_absolute_file_path('1_03_solution.sce');
datafile=WD+filesep()+'1_03_example.sci';
clc;
exec(datafile)
m = rho * V; //mass volume relation
printf("\n Mass of oil: %1.2f kg", m);
|