blob: f6a1b02442fcdf78a8587bcf877de9d743256864 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
//Chapter-8,Example 2,Page 195
clc();
close();
H=20*0.1/1000 //as 20 ml of 0.1M HCl
pH=-log10(H)
pOH=14-pH
OH=10^(-pOH)
printf(' the [H+] = %.4f mole/l',H)
printf('\n the [OH-] =')
disp(OH)
printf(' mole/l')
printf('\n the pH = %.f ',pH)
|