import math
from __future__ import division
#initialisation of variables
E= 0.232 #v
R= 0.0592
p= 1 #atm
R1= 0.0296
P= 740 #atm
#CALCULATIONS
pH= E/R
pH1= (E-R1*math.log10(P/760))/R
e= pH1-pH
#RESULTS
print"error in pH of solution=",round(e-0.002,3);
import math
from __future__ import division
#initialisation of variables
e= 0.266 #v
R= 0.0592
#CALCULATIONS
pH= e/R
#RESULTS
print"pH of the unkown solution=",round(pH,2);
import math
from __future__ import division
#initialisation of variables
e= 0.323 #v
R= 0.0592
c= 0.001 #molar
#CALCULATIONS
pH= (e-R*math.log10(c))/R
#RESULTS
print"pH of the unkown solution=",round(pH,2);
import math
from __future__ import division
#initialisation of variables
E= 0.527 #v
T= 25 #C
R= 0.0592
e= -0.246 #v
#CALCULATIONS
pH= -(-E-e)/R
#RESULTS
print"pH of the unkown solution=",round(pH,2);
import math
from __future__ import division
#initialisation of variables
E= 0.034 #v
E1= -0.280 #v
E2= -0.699 #v
E3= 0.0592
#CALCULATIONS
pH= (E1-E-E2)/E3
pH1= (E-E2+E1)/E3
#RESULTS
print"pH of the unkown solution=",round(pH,2);
print"pH of the unkown solution=",round(pH1,2);