summaryrefslogtreecommitdiff
path: root/615/CH2/EX2.15/2_15.sce
blob: a3453f692c39730dadb129fa6d038f14217230cc (plain)
1
2
3
4
5
6
7
//acids and bases//
//example 2.15//
M1=0.2;//molarity of acetic acid//
M2=0.2;//molarity of sodium acetate//
K=1.8*10^-5;
pH=-log10(K)+log10(M2/M1);//by using Henderson's equation//
printf("The pH value of buffer solution is %f",pH);