import math
##Intitalisation of variables
c= 0.01 ##M
T= 25. ##C
kw= 1.01*10**-14
ka= 1.75*10**-5
##CALCULATIONS
x= math.sqrt(kw/(ka*c))
##RESULTS
print'%s %.1e %s'% ('Degree of hydrolysis = ',x,'')
import math
##Intitalisation of variables
c= 0.01 ##M
ka= 1.75*10**-5
pkw= 14.
ka1= 1.79
##CALCULATIONS
pH= 0.5*pkw-0.5*math.log(ka)+0.5*math.log(c)-ka1
##RESULTS
print'%s %.2f %s'% ('pH of solution = ',pH,'')
import math
##Intitalisation of variable
k1= 10**-14
c= 0.1 ##M
pH= 8.88
cH= 1.32*10**-9 ##gms
##CALCULATIONS
x= k1/(c*cH)
kh= c*x**2
##RESULTS
print'%s %.2e %s'% ('x = ',x,'')
print'%s %.2e %s'% ('\n Hydrolysis constant = ',kh,'')
import math
##Intitalisation of variables
c= 0.0156 ##M
ec= 111.5 ##ohm^-1 cm^2
ac= 99.9 ##ohm^-1 cm^2
ac1= 426. ##ohm^-1 cm^2
kw= 10**-14
##CALCULATIONS
x= (ec-ac)/(ac1-ac)
kh= c*x**2/(1.-x)
kb= kw/kh
##RESULTS
print'%s %.2f %s'% ('x = ',x,'')
print'%s %.1e %s'% ('\n Hydrolysis constant = ',kh,'')
print'%s %.1e %s'% ('\n Dissociation constant = ',kb,'')
import math
##Intitalisation of variables
pH= 7.
c1=1. ##M
c2= 0.155 ##M
c3= 0.25 ##m
c4= 0.05 ##M
c5= 0.62 ##M
pka= 7.21
##CALCULATIONS
ph1= pka+math.log10((c5+c4)/(c1-c4))
ph2= pka+math.log10((c2+c4)/(c3-c4))
##RESULTS
print'%s %.2f %s'% ('final pH = ',ph1,'')
print'%s %.2f %s'% ('\n final pH = ',ph2,'')
import math
##Intitalisation of variablesclear
v1= -0.1252 ##volt
v2= 0.3636##volt
v3= 0.05915##volt
##CALCULATIONS
ph= (v1+v2)/v3
##RESULTS
print'%s %.2f %s'% ('final pH = ',ph,'')
import math
##Intitalisation of variable
pki= 3.98
t1= 0.85 ##mm
t2= 0.15 ##mm
##CALCULATIONS
pH= pki+math.log10(t1/t2)
##RESULTS
print'%s %.2f %s'% ('pH of the solution = ',pH,'')
import math
##Intitalisation of variables
pki= 7.
t1= 3. ##drops
t2= 7. ##drops
##CALCULATIONS
pH= pki+math.log10(t1/t2)
##RESULTS
print'%s %.2f %s'% ('pH of the solution = ',pH,'')
import math
##Intitalisation of variables
c= 0.1 ##N
ka= 5.75*10**-10
##CALCULATIONS
cH= math.sqrt(c*ka)
pH= -math.log10(cH)
##RESULTS
print'%s %.2e %s'% ('cH = ',cH,'')
print'%s %.2f %s'% ('\n pH of the solution = ',pH,'')