summaryrefslogtreecommitdiff
path: root/615/CH2/EX2.8/2_8.sce
blob: 56cf9234b82f7e39d4799bf0c8da83fd2145f87e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//acids and bases//
//example 2.8//
W=2;//weight of NaOH dissolved in water in grams//
M=40;//molecular weight of NaOH//
N=W/M;//normality//
a=100;//percentage of ionization//
printf('the normality of NaOH solution is %fg.equivalent/lit',N);
OH=N*a/100;//the OH- ion concentration of solution//
Kw=10^-14;
H=Kw/OH;
pH=-log10(H);
printf('\n The pH of the NaOH solution is %f',pH);