diff options
author | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
commit | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch) | |
tree | dbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3825/CH6/EX6.16/Ex6_16.sce | |
parent | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff) | |
download | Scilab-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/CH6/EX6.16/Ex6_16.sce')
-rw-r--r-- | 3825/CH6/EX6.16/Ex6_16.sce | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/3825/CH6/EX6.16/Ex6_16.sce b/3825/CH6/EX6.16/Ex6_16.sce new file mode 100644 index 000000000..735a5a381 --- /dev/null +++ b/3825/CH6/EX6.16/Ex6_16.sce @@ -0,0 +1,30 @@ +clc
+r=83.56 //moles of nitrogen in product
+b=3.7619
+z=r/b
+mprintf("z=%f\n",z)//ans vary due to roundoff error
+c=9.27 //moles of carbon in product
+d=2.31 //moles of carbon in product
+x=c+d
+mprintf("x=%f\n",x)//ans vary due to roundoff error
+e=4.86 //moles of nitrogen
+a=(z-c-(d/2)-e)*2
+mprintf("a=%f\n",a)//ans vary due to roundoff error
+y=2*a
+mprintf("y=%f\n",y)//ans vary due to roundoff error
+g=12
+carbon=(x*g)/((x*g)+y)
+mprintf("carbon=%fpercent\n",carbon*100)//ans vary due to roundoff error
+hydrogen=y/((x*g)+y)
+mprintf("hydrogen=%fpercent\n",hydrogen*100)//ans vary due to roundoff error
+h=28.97
+s=((z+r)*h)/((x*g)+y)
+mprintf("Air-fuel ratio=%fkg air/kg fuel\n",s)//ans vary due to roundoff error
+O2=25.43
+N2=95.665
+t=((O2+N2)*h)/((x*g)+y)
+mprintf("theoretical air-fuel ratio=%f kg air/kg fuel\n",t)//ans vary due to roundoff error
+pert=(s/t)*100
+mprintf("Percent theoretical air=%fpercent\n",pert)//ans vary due to roundoff error
+mprintf("Percent deficit air=%fpercent\n",100-pert)//ans vary due to roundoff error
+
|