summaryrefslogtreecommitdiff
path: root/3876/CH9/EX9.16/Ex9_16.sce
blob: ef63ef67ded3290dd9f8501beb25b86d07034849 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//Chapter 9 Ionic Equilibria and Buffer Action

clc;
clear;

//Initialisation of Variables
c= 1 //M
Kb= 5.3*10**-5
pKw= 14

//CALCULATIONS
pH= pKw+0.5*log10(Kb)+0.5*log10(c)

//RESULTS
mprintf("pH of solution = %.2f",pH)