summaryrefslogtreecommitdiff
path: root/1427/CH5/EX5.14/5_14.sce
diff options
context:
space:
mode:
Diffstat (limited to '1427/CH5/EX5.14/5_14.sce')
-rw-r--r--1427/CH5/EX5.14/5_14.sce9
1 files changed, 9 insertions, 0 deletions
diff --git a/1427/CH5/EX5.14/5_14.sce b/1427/CH5/EX5.14/5_14.sce
new file mode 100644
index 000000000..b9ea55b70
--- /dev/null
+++ b/1427/CH5/EX5.14/5_14.sce
@@ -0,0 +1,9 @@
+//ques-5.14
+//Calculating pH of the solution
+clc
+Ka=1.8*10^-5;
+x1=0.2;//moles of HCl added
+x2=1;//moles of acetic acid
+x3=1;//moles of acetate ion
+p=-log10(Ka)+log10((x2+x1)/(x3-x1));
+printf("The pH of the solution is %.4f.",p);