summaryrefslogtreecommitdiff
path: root/1427/CH15/EX15.3
diff options
context:
space:
mode:
Diffstat (limited to '1427/CH15/EX15.3')
-rw-r--r--1427/CH15/EX15.3/15_3.sce10
1 files changed, 10 insertions, 0 deletions
diff --git a/1427/CH15/EX15.3/15_3.sce b/1427/CH15/EX15.3/15_3.sce
new file mode 100644
index 000000000..4e5e5a99c
--- /dev/null
+++ b/1427/CH15/EX15.3/15_3.sce
@@ -0,0 +1,10 @@
+//ques-15.3
+//Determining composition of equilibrium mixture
+clc
+a=1;//moles of acid
+b=8;//moles of alcohol
+Kc=4;//equilibrium constant
+//Solving, 3*x^2-36*x+32 = 0
+D=36^2-4*3*32;//discriminant
+x=(36-sqrt(D))/(2*3);
+printf("Final content of acid, alcohol, salt and water are %.3f, %.3f, %.3f and %.3f moles respectively.",a-x,b-x,x,x);