blob: b488ab0e4c5afab67f3b5ac1cd111e63773bbde4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
//ques-5.26
//Calculating amount of Ammonia and Ammonium chloride required
clc
pH=9;//pH of buffer
t=0.6;//total concentration of buffer (in mol/L)
pOH=14-pH;
pKb=4.7;//for ammonia
a=pOH-pKb;//a=log10(x/0.6-x); x=[NH4Cl]
x=1.2/3;
printf("Amount of ammonia required is %.1f mol/L and ammonium chloride required is %.1f mol/L.",x/2,x);
|