summaryrefslogtreecommitdiff
path: root/575/CH6/EX6.6.1/6_6_1.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /575/CH6/EX6.6.1/6_6_1.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '575/CH6/EX6.6.1/6_6_1.sce')
-rwxr-xr-x575/CH6/EX6.6.1/6_6_1.sce24
1 files changed, 24 insertions, 0 deletions
diff --git a/575/CH6/EX6.6.1/6_6_1.sce b/575/CH6/EX6.6.1/6_6_1.sce
new file mode 100755
index 000000000..4651cb6ef
--- /dev/null
+++ b/575/CH6/EX6.6.1/6_6_1.sce
@@ -0,0 +1,24 @@
+clc
+pathname=get_absolute_file_path('6_6_1.sce')
+filename=pathname+filesep()+'661.sci'
+exec(filename)
+printf(" All the values in the textbook are Approximated hence the values in this code differ from those of Textbook")
+Dbar=DA*DW/(x*DW + (1-x)*DA)
+mass1=V1*Dbar
+mass2=V2*DC
+disp("C balance")
+m4=mass2
+printf(" \n m4=%f",m4)
+disp("W balance")
+m2=(1-x)*mass1
+printf(" \n m2=%f",m2)
+disp("A balance")
+printf("m1+m3=%f * %f",x,mass1)
+disp("Distribution Cooefficient ,K=m3*(m1+m2)/m1*(m3+m4)")
+disp("On solving, ")
+m1=2.7
+m3=16.8
+percentage=m3*100/(x*mass1)
+printf(" \n m1=%f",m1)
+printf(" \n m3=%f",m3)
+printf(" \n percentage of acetone transferred to chloroform=%f",percentage) \ No newline at end of file