diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /1394/CH18/EX18.3.1/Ex18_3_1.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '1394/CH18/EX18.3.1/Ex18_3_1.sce')
-rwxr-xr-x | 1394/CH18/EX18.3.1/Ex18_3_1.sce | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/1394/CH18/EX18.3.1/Ex18_3_1.sce b/1394/CH18/EX18.3.1/Ex18_3_1.sce new file mode 100755 index 000000000..a0e0d8b1f --- /dev/null +++ b/1394/CH18/EX18.3.1/Ex18_3_1.sce @@ -0,0 +1,28 @@ + +clc
+//initialization of variables
+R = 0.082 // litre-atm/mol-K
+T = 283 // Kelvin
+V2 = 0.018 // litre/mol
+//For first solution contents are sucrose and water
+w1 = 0.01 // gm of sucrose
+MW1 = 342 // MW of sucrose
+w2 = 0.09 // gm of water
+MW2 = 18 // MW of water
+n1 = 1 // no of particles sucrose divides into in water
+//Calculations
+x1juice = (n1*w1/MW1)/((n1*w1/MW1)+(w2/MW2))// Mole fracion of sucrose
+//For second solution , contents are NaCl and water
+w1 = 35 // gm of NaCl
+MW1 = 58.5 // MW of Nacl
+w2 = 100 // gm of water
+MW2 = 18 // MW of water
+n1 = 2 // no of particles sucrose divides into in water
+//Calculations
+x1brine = (n1*w1/MW1)/((n1*w1/MW1)+(w2/MW2))// Mole fracion of sucrose
+//Calculation of difference in Osmotic pressure
+DeltaPi = (R*T/V2)*log((1-x1juice)/(1-x1brine))// atm
+//Results
+printf("The osmotic pressure difference is %.f atm",DeltaPi)
+//answer wrong in textbook
+
|