blob: 4f88f8d47c87941fee488f79664998914a422993 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
//ques-5.12
//Calculating pH of a mixture
clc
Ka=1.85*10^-5;
v1=50;//volume of scetic acid (in mL)
v2=50;//volume of sodium acetate ion (in mL)
M1=0.2;//molarity of acetic acid
M2=0.2;//molarity of acetate ion
pH=-log10(Ka)+log10((v1*M1)/(v2*M2));
printf("The pH of the mixture is %.3f.",pH);
|