summaryrefslogtreecommitdiff
path: root/1427/CH5/EX5.25/5_25.sce
blob: 10a14aeade9a1e2feade512f7774f2f7ca6c80d6 (plain)
1
2
3
4
5
6
7
8
//ques-5.25
//Calculating pH of a buffer solution
clc
Ka=1.8*10^-5;
m1=0.2;//moles of acetic acid
m2=0.1;//moles of sodium acetate
p=-log10(Ka)+log10(m2/m1);
printf("pH of the given buffer is %.4f.",p);