summaryrefslogtreecommitdiff
path: root/24/CH20/EX20.1
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /24/CH20/EX20.1
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 '24/CH20/EX20.1')
-rwxr-xr-x24/CH20/EX20.1/Example20_1.sce12
-rwxr-xr-x24/CH20/EX20.1/Example20_1_result.txt2
2 files changed, 14 insertions, 0 deletions
diff --git a/24/CH20/EX20.1/Example20_1.sce b/24/CH20/EX20.1/Example20_1.sce
new file mode 100755
index 000000000..3f93ad9e8
--- /dev/null
+++ b/24/CH20/EX20.1/Example20_1.sce
@@ -0,0 +1,12 @@
+//Given that
+Vi = 12 //in L
+Ti = 20+273 //in K
+Pi = 15 //in atm
+Tf = 35+273 //in K
+Vf = 8.5 //in L
+R = .0821 //in atm.lit/(mol.K)
+
+//Sample Problem 20-1
+printf("**Sample Problem 20-1**\n")
+Pf = (Pi*Vi/(R*Ti))/(Vf/(R*Tf))
+printf("The final pressure of the gas is %fatm", Pf) \ No newline at end of file
diff --git a/24/CH20/EX20.1/Example20_1_result.txt b/24/CH20/EX20.1/Example20_1_result.txt
new file mode 100755
index 000000000..b2b56660d
--- /dev/null
+++ b/24/CH20/EX20.1/Example20_1_result.txt
@@ -0,0 +1,2 @@
+**Sample Problem 20-1**
+The final pressure of the gas is 22.260590atm \ No newline at end of file