blob: 3f3aa9453b8bbc9f2ce5296d965923cce3431872 (
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
//Write Expression for the activities of Pottasium Chloride Sodium Chromate and Aluminium sulphate
//Example 8.8
clc;
clear;
vpos1=1; //Number of cation of KCl
vneg1=1; //Number of anion of KCl
v1=vpos1+vneg1; //Total number of ions of KCl
m1=(1*vpos1*1*vneg1)^1/v1; //Mean ionic molality of KCl
a1=m1; //Mean ionic activity ofelectrolyte
printf("mu KCl = ",a1);
printf("(m^%.1f)",v1);
printf("*(gamma^%.1f)",v1);
vpos2=2; //Number of cation of KCl
vneg2=1; //Number of anion of KCl
v2=vpos2+vneg2; //Total number of ions of KCl
a2=((2^vpos2)*(1^vpos2)); //Mean ionic molality of KCl
printf("\nmu Na2CrO4 = %.0f",a2);
printf("*(m^%f)",v2);
printf("*(gamma^%.1f)",v2);
vpos3=2; //Number of cation of KCl
vneg3=3; //Number of anion of KCl
v3=vpos3+vneg3; //Total number of ions of KCl
a3=(2^vpos3*3^vneg3); //Mean ionic molality of KCl
printf("\nmu Al2(SO4)3 = %.0f",a3 );
printf("*(m^%.1f)",v3);
printf("*(gamma^%.1f)",v3);
|