summaryrefslogtreecommitdiff
path: root/1394/CH18/EX18.3.1/Ex18_3_1.sce
blob: a0e0d8b1ff1d57f50edc39f9fdb9342ceccf43c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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