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 /2024/CH10/EX10.21/10_21.sce | |
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 '2024/CH10/EX10.21/10_21.sce')
-rwxr-xr-x | 2024/CH10/EX10.21/10_21.sce | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/2024/CH10/EX10.21/10_21.sce b/2024/CH10/EX10.21/10_21.sce new file mode 100755 index 000000000..c7f5d2581 --- /dev/null +++ b/2024/CH10/EX10.21/10_21.sce @@ -0,0 +1,20 @@ +clc
+//Initialization of variables
+t1=343.3 //R
+t2=766.8 //R
+n1=0.396 //mol
+n2=0.604 //mol
+V=8.518 //ft^3
+p1=45.8 //atm
+p2=36 //atm
+R0=0.73
+T=920 //R
+//calculations
+tcd=n1*t1+n2*t2
+pcd=n1*p1+n2*p2
+Tr=T/tcd
+Vr=pcd*V/(R0*tcd)
+Z=0.87
+p=Z*R0*T/V
+//results
+printf("Pressure = %.1f atm",p)
|