summaryrefslogtreecommitdiff
path: root/3428/CH23/EX14.23.4/Ex14_23_4.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /3428/CH23/EX14.23.4/Ex14_23_4.sce
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 '3428/CH23/EX14.23.4/Ex14_23_4.sce')
-rw-r--r--3428/CH23/EX14.23.4/Ex14_23_4.sce12
1 files changed, 12 insertions, 0 deletions
diff --git a/3428/CH23/EX14.23.4/Ex14_23_4.sce b/3428/CH23/EX14.23.4/Ex14_23_4.sce
new file mode 100644
index 000000000..75861f586
--- /dev/null
+++ b/3428/CH23/EX14.23.4/Ex14_23_4.sce
@@ -0,0 +1,12 @@
+//Section-14,Example-2,Page no.-PC.75
+//To calculate equilibrium composition of reaction mixture
+clc;
+a_N2=1.00-x
+a_H2=3.00-(3*x)
+a_NH_3=2*x
+//K=(2*x^2)/((1.00-x)*(3.00-3*x)^3)=977
+x_1=(163.416+sqrt((163.416)^2-(4*81.208*81.208)))/(2*81.208)
+x_2=(163.416-sqrt((163.416)^2-(4*81.208*81.208)))/(2*81.208)
+p_N2=1-x_2
+p_H2=3*(1-x_2)
+p_NH3=2*x_2