diff options
Diffstat (limited to '2465/CH8/EX8.3/Example_3.sce')
-rw-r--r-- | 2465/CH8/EX8.3/Example_3.sce | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/2465/CH8/EX8.3/Example_3.sce b/2465/CH8/EX8.3/Example_3.sce new file mode 100644 index 000000000..6c3156976 --- /dev/null +++ b/2465/CH8/EX8.3/Example_3.sce @@ -0,0 +1,32 @@ +//Chapter-8,Example 3,Page 195
+clc();
+close();
+
+//solution for (a) part
+
+conc1=1*10^-8 //concentration of HCl solution
+
+//let [H+] concentration from water = x
+//so, [H+] of solution = conc1*x an [OH-] = x
+//......Kw = [H+]*[OH-] = 10^-14
+//......x^2 +(10^-8)*x -(10^-14)=0
+x = (-10^-8 + sqrt((10^-8)^2 + 4*1*10^-14))/(2*1)
+
+H=conc1 +x
+
+pH1=-log10(H)
+
+printf('for HCl the pH = %.3f',pH1)
+
+
+//solution for (b) part
+conc2= 1*10^-8 //concentration of NaOH solution
+
+OH=x+conc2
+
+pOH2=-log10(OH)
+
+pH2=14 - pOH2
+
+printf('\n for NaOH the pH = %.3f',pH2)
+
|