summaryrefslogtreecommitdiff
path: root/615/CH2/EX2.20/2_20.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /615/CH2/EX2.20/2_20.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '615/CH2/EX2.20/2_20.sce')
-rwxr-xr-x615/CH2/EX2.20/2_20.sce19
1 files changed, 19 insertions, 0 deletions
diff --git a/615/CH2/EX2.20/2_20.sce b/615/CH2/EX2.20/2_20.sce
new file mode 100755
index 000000000..d694020ef
--- /dev/null
+++ b/615/CH2/EX2.20/2_20.sce
@@ -0,0 +1,19 @@
+//acids and bases//
+//example 2.20//
+N1=0.2//concentration of acetic acid in g.molecule/lit//
+N2=0.25//concentration of sodium acetate in g.molecule/lit//
+K=1.8*10^-5//ionization constant of acetic acid at room temparature//
+pH1=-log10(K)+log10(N2/N1);
+printf("pH value of the solution before adding HCl is %f",pH1);
+N=1//normality of HCl added//
+V=0.5*10^-3//amount of HCl added in lit//
+M=N*V
+printf("\nThe amount of HCl added in moles is %f",M);
+printf("\nassuming HCl to be completely ionized,the amount of H+ ions added will be %f mole",M);
+printf("\n due to addition of H+ ions the amount of acetic acid will increase and that of salt will correspondingly decrease by %f moles",M);
+C1=N1+M//concentration of CH3COOH in moles/lit//
+C2=N2-M//concentration of CH3COONa in moles/lit//
+pH2=-log10(K)+log10(C2/C1);
+printf("\nThe pH of the solution after adding HCl is %f",pH2);
+pH=pH1-pH2;
+printf("\nThe change of pH is %f",pH); \ No newline at end of file