diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /2837/CH15/EX15.1 | |
download | Scilab-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-x | 2837/CH15/EX15.1/Ex15_1.sce | 13 |
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))
|