blob: 610d9271a20f253396041ddfc8812be889c7da7c (
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
|
clear;
clc;
// Example: 10.9
// Page: 412
printf("Example: 10.9 - Page: 412\n\n");
// Solution
//*****Data******//
x1 = 0.42;
x2 = 0.58;
P = 760;// [mm of Hg]
P1sat = 786;// [mm of Hg]
P2sat = 551;// [mm of Hg]
//***************//
gama1 = P/P1sat;
gama2 = P/P2sat;
A = log(gama1)*(1 + (x2*log(gama2))/(x1*log(gama1)))^2;
B = log(gama2)*(1 + (x1*log(gama1))/(x2*log(gama2)))^2;
printf("Van Laar Constants\n");
printf("A = %.3f\n",A);
printf("B = %.3f\n",B);
|