summaryrefslogtreecommitdiff
path: root/3856/CH11/EX11.4/Ex11_4.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3856/CH11/EX11.4/Ex11_4.sce
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '3856/CH11/EX11.4/Ex11_4.sce')
-rw-r--r--3856/CH11/EX11.4/Ex11_4.sce21
1 files changed, 21 insertions, 0 deletions
diff --git a/3856/CH11/EX11.4/Ex11_4.sce b/3856/CH11/EX11.4/Ex11_4.sce
new file mode 100644
index 000000000..2ac54d7b1
--- /dev/null
+++ b/3856/CH11/EX11.4/Ex11_4.sce
@@ -0,0 +1,21 @@
+//Calculate the pH of of a buffer solution what is pH of the buffer solution after the addition of HCl
+
+//Example 11.4
+
+clc;
+
+clear;
+
+C1=0.40; //Concentration of Acetic acid in M
+
+C2=0.55; //Concentration of Sodium Acetate in M
+
+pH1=4.76+log10(C2/C1); //pH of the Buffer solution before addition of HCl
+
+printf("pH of the Buffer solution = %.2f",pH1);
+
+C3=0.10; //Concentration of HCl in M
+
+pH=4.76+log10((C2-C3)/(C1+C3)); // pH of the Buffer solution after addition of HCl
+
+printf("\n pH of the Buffer solution after addition of HCl = %.2f",pH);