summaryrefslogtreecommitdiff
path: root/551/CH9/EX9.6/6.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /551/CH9/EX9.6/6.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 '551/CH9/EX9.6/6.sce')
-rwxr-xr-x551/CH9/EX9.6/6.sce27
1 files changed, 27 insertions, 0 deletions
diff --git a/551/CH9/EX9.6/6.sce b/551/CH9/EX9.6/6.sce
new file mode 100755
index 000000000..cdb8a3ac8
--- /dev/null
+++ b/551/CH9/EX9.6/6.sce
@@ -0,0 +1,27 @@
+clc
+
+//Let composition of mixture by volume be denoted by c1
+//Let Final composition desired be denoted by c2
+
+c1_H2=0.78;
+c1_CO=0.22;
+
+c2_H2=0.52;
+c2_CO=0.48;
+
+M_H2=2;
+M_CO=28;
+
+M=c1_H2*M_H2 + c1_CO*M_CO;
+
+// Let x kg of mixture be removed and y kg of CO be added.
+
+x=(c1_H2 - c2_H2)/c1_H2*M;
+disp("Mass of mixture removed =")
+disp(x)
+disp("kg")
+
+y=M_CO/M*x;
+disp("Mass of CO added=")
+disp(y)
+disp("kg") \ No newline at end of file