summaryrefslogtreecommitdiff
path: root/1427/CH5/EX5.19/5_19.sce
blob: cc00a9de93aac258a81e6d0bd31330206c8d3bbb (plain)
1
2
3
4
5
6
7
8
//ques-5.19
//Calculating pH of Calcium hydroxide
clc
M=0.005;//molarity of calcium hydroxide
c1=2*M;//content of hydroxide ion (in mol/L)
c2=10^-14/c1;//content of hydrogen ion (in mol/L)
p=-log10(c2);
printf("the pH required is %.0f.",p);