blob: f1084d5655cb277d31df8395d28dac944dc01f34 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
clc
//initialisation of variables
clear
R= 1.98*10^-4 //cal mole^-1 deg^-1
T= 20 //C
E= -0.11118 //volt
n2= 0.00326
n21= 0.0986
//CALCULATIONS
r= 10^((-E/(R*(273.16+T)))-log10(n21)+log10(n2))+n21
a2= r*n21
//RESULTS
printf ('a2/N2 = %.3f ',r)
printf ('\n a2 = %.4f ',a2)
|