summaryrefslogtreecommitdiff
path: root/2495/CH2/EX2.9.3/Ex2_9_3.sce
blob: 84f2be469ada8ee872bd916d7ddf412cd34ad587 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
clear
clc
w1=1;//amount of glucose C6H12O6 in gm
w2=1;//amount of sucrose C12H12022 in gm
n=(w1/180)+(w2/342);//amount of solute
R=8.314;//in J/Kmol
T=25;//in C
V=1000;//volume of water in gm
P=(n*R*(T+273))/(V*10^-6);//osmotic pressure of solution
printf('P=%.3f *10^4 N/m^2',P/10^4) 
w=(w1+w2);//weight of solute
M=(w*R*(T+273))/(P*(V*10^-3));//molar mass of solute
printf('\nM=%.4f kg/mol',M)
Mn=((w1*10^-3)+(w2*10^-3))/(n);//average molar mass in Kg/mol
printf('\nMn=%.4f kg/mol',Mn)

//page 67