blob: 90c160c077594e3df0274ea2d4b28db3d39e5ad0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
//Chapter 3: Thermodynamic and Chemical Equilibrium
//Problem: 27
clc;
//Declaration of Variables
n_salt = 0.02 // mole
n_base = 0.2 // mole
pKb = 4.7
// Solution
pOH = pKb + log10(n_salt / n_base)
pH = 14 - pOH
mprintf("pH of a buffer solution is %.1f", pH)
|