//Chapter 9 Ionic Equilibria and Buffer Action clc; clear; //Initialisation of Variables Ka= 1.8*10**-5 a= 0.1 //molar //CALCULATIONS pH= -log10(Ka) //RESULTS mprintf("pH of a buffer solution = %.2f",pH)