diff options
Diffstat (limited to '575/CH4/EX4.2.3/4_2_3.sce')
-rwxr-xr-x | 575/CH4/EX4.2.3/4_2_3.sce | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/575/CH4/EX4.2.3/4_2_3.sce b/575/CH4/EX4.2.3/4_2_3.sce new file mode 100755 index 000000000..564f1c19e --- /dev/null +++ b/575/CH4/EX4.2.3/4_2_3.sce @@ -0,0 +1,9 @@ +clc +pathname=get_absolute_file_path('4_2_3.sce') +filename=pathname+filesep()+'423.sci' +exec(filename) +printf(" All the values in the textbook are Approximated hence the values in this code differ from those of Textbook") +m=m1+m2 +printf(" \n Total mass after mixing m=%d g",m) +x=(m1*x1 + m2*x2)/m +printf(" \n The composition of the methanol in the product is %f and water is %f",x,1-x)
\ No newline at end of file |