summaryrefslogtreecommitdiff
path: root/1439/CH15/EX15.11/15_11.sce
diff options
context:
space:
mode:
Diffstat (limited to '1439/CH15/EX15.11/15_11.sce')
-rwxr-xr-x1439/CH15/EX15.11/15_11.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/1439/CH15/EX15.11/15_11.sce b/1439/CH15/EX15.11/15_11.sce
new file mode 100755
index 000000000..407cec642
--- /dev/null
+++ b/1439/CH15/EX15.11/15_11.sce
@@ -0,0 +1,17 @@
+clc
+//initialisation of variables
+pKa= 6.84
+n= 0.04 //mole
+n1= 0.02 //mole
+n2= 0.001 //mole
+pH3= 7
+//CALCULATIONS
+pH= pKa+log10(n/n1)
+pH1= pKa+log10((n-n2)/(n1+n2))
+dpH= pH-pH1
+pH2= -log10(n2)
+dpH1= pH3-pH2
+//RESULTS
+printf ('pH = %.2f ',pH1)
+printf ('\n dpH = %.2f ',dpH)
+printf ('\n dpH = %.2f ',dpH1)