summaryrefslogtreecommitdiff
path: root/1427/CH5/EX5.12/5_12.sce
diff options
context:
space:
mode:
Diffstat (limited to '1427/CH5/EX5.12/5_12.sce')
-rw-r--r--1427/CH5/EX5.12/5_12.sce11
1 files changed, 11 insertions, 0 deletions
diff --git a/1427/CH5/EX5.12/5_12.sce b/1427/CH5/EX5.12/5_12.sce
new file mode 100644
index 000000000..4f88f8d47
--- /dev/null
+++ b/1427/CH5/EX5.12/5_12.sce
@@ -0,0 +1,11 @@
+//ques-5.12
+//Calculating pH of a mixture
+clc
+Ka=1.85*10^-5;
+v1=50;//volume of scetic acid (in mL)
+v2=50;//volume of sodium acetate ion (in mL)
+M1=0.2;//molarity of acetic acid
+M2=0.2;//molarity of acetate ion
+pH=-log10(Ka)+log10((v1*M1)/(v2*M2));
+printf("The pH of the mixture is %.3f.",pH);
+