summaryrefslogtreecommitdiff
path: root/1652/CH12/EX12.9/12_9.sce
blob: 670aa39652fc00b070923eda9bd88b7be867ecde (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
clc
//Initialization of variables
p=0.1 //m
T=30+273.2  //K
R=0.08206 //lt atm /deg/mol
P1=1 //atm
//calculations
w=1000/p
V=w/1000
dP=R*T/V
P=dP+P1
//results
printf("Osmotic Pressure =%.2f atm ",P)