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 --- 2837/CH15/EX15.1/Ex15_1.sce | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 2837/CH15/EX15.1/Ex15_1.sce (limited to '2837/CH15/EX15.1/Ex15_1.sce') diff --git a/2837/CH15/EX15.1/Ex15_1.sce b/2837/CH15/EX15.1/Ex15_1.sce new file mode 100755 index 000000000..0acaf70fd --- /dev/null +++ b/2837/CH15/EX15.1/Ex15_1.sce @@ -0,0 +1,13 @@ +clc +clear +//Initalization of variables +kp=10^(1.45) +//calculations +x=poly(0,"x") +s=(1-x)^2 *(2+x) -kp^2 *x^(3) +vec=roots(s) +X=vec(3) +xper=X*100 +//results +printf("Amount of dissociaton = %.1f percent",xper) +printf("\n Of each original mole of CO2, there will be %.3f mole of CO , %.3f mol of Oxygen and %.3f mol of CO2",X,X/2,(1-X)) -- cgit