clc //initialisation of variables ka= 1.75*10^-5 ca= 0.1 //mole lit //CALCULATIONS pH= -log10(sqrt(ka*ca)) //RESULTS printf ('pH = %.2f ',pH)