From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 1709/CH11/EX11.8/11_8.sce | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 1709/CH11/EX11.8/11_8.sce (limited to '1709/CH11/EX11.8/11_8.sce') diff --git a/1709/CH11/EX11.8/11_8.sce b/1709/CH11/EX11.8/11_8.sce new file mode 100755 index 000000000..39fe1e0e3 --- /dev/null +++ b/1709/CH11/EX11.8/11_8.sce @@ -0,0 +1,16 @@ +clc +//Initialization of variables +Kp=15.63 +y=Kp +//calculations +x=poly(0,"x") +vec=roots(x^2 + y*x^2 - y) +eps=vec(1) +x1=(1-eps)/(1+eps) +x2=eps/(1+eps) +x3=eps/(1+eps) +//results +printf(" Equilibrium concentration of Cs = %.4f ",x1) +printf("\n Equilibrium concentration of Cs+ = %.4f ",x2) +printf("\n Equilibrium concentration of e- = %.4f ",x3) +//the answers are a bit different due to approximation in textbook -- cgit