summaryrefslogtreecommitdiff
path: root/3825/CH10/EX10.5/Ex10_5.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3825/CH10/EX10.5/Ex10_5.sce
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '3825/CH10/EX10.5/Ex10_5.sce')
-rw-r--r--3825/CH10/EX10.5/Ex10_5.sce23
1 files changed, 23 insertions, 0 deletions
diff --git a/3825/CH10/EX10.5/Ex10_5.sce b/3825/CH10/EX10.5/Ex10_5.sce
new file mode 100644
index 000000000..5eba311f5
--- /dev/null
+++ b/3825/CH10/EX10.5/Ex10_5.sce
@@ -0,0 +1,23 @@
+clc
+y1=0.6 //H2
+y2=0.4 //CH4
+p1=60 //in kPa
+p2=40 //in kPa
+T=300 //in kelvin
+V=5 //in metre-cube
+R=8.314*10^3
+N1=(p1*10^3*V)/(R*T)
+mprintf("NH2=%fkmol\n",N1)//ans vary due to roundoff error
+N2=(p2*10^3*V)/(R*T)
+mprintf("NCH4=%fkmol\n",N2)//ans vary due to roundoff error
+y1=0.5
+y2=0.5
+mprintf("Total methane to be added=%fkmol\n",(N1-N2))//ans vary due to roundoff error
+N2=N1
+N=N1+N2
+Pf=(N*R*T)/V
+mprintf("Pf=%fkPa",Pf/1000)//ans vary due to roundoff error
+
+
+
+