//Chapter 9 Ionic Equilibria and Buffer Action clc; clear; //Initialisation of Variables pH= 7.10 pH1= 7.21 //CALCULATIONS r= 10**(pH-pH1) //RESULTS mprintf("Ratio of salt to acid = %.2f",r)