summaryrefslogtreecommitdiff
path: root/615/CH2/EX2.14/2_14.sce
blob: c3b1af2db39e2174f16dc27a6d929dd6e8c87650 (plain)
1
2
3
4
5
6
7
8
9
10
11
//acids and bases//
//example 2.14//
C1=0.06;//concentration od acetic acid in g.mol/lit//
C2=0.04;//concentration of sodium acetate in g.mol/li//
disp("Due to the fact sodium acetate being completely dissociated avd acetic acid in the presence of former,the acetate ions are mainly obtained from the former");
printf("the concentration of acetate ions are %fg.ion/lit",C2);
K=1.8*10^-5;//dissociation constant of acetic acid//
H=K*C1/C2;
printf("\nthe H+ concentration of the solution is %fg.ion/lit",H);
pH=-log10(H);
printf("\nThe pH of solution is %f",pH);