summaryrefslogtreecommitdiff
path: root/2837/CH15/EX15.1
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2837/CH15/EX15.1
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '2837/CH15/EX15.1')
-rwxr-xr-x2837/CH15/EX15.1/Ex15_1.sce13
1 files changed, 13 insertions, 0 deletions
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))