summaryrefslogtreecommitdiff
path: root/1019/CH2/EX2.3/Example_2_3.sce
diff options
context:
space:
mode:
Diffstat (limited to '1019/CH2/EX2.3/Example_2_3.sce')
-rw-r--r--1019/CH2/EX2.3/Example_2_3.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/1019/CH2/EX2.3/Example_2_3.sce b/1019/CH2/EX2.3/Example_2_3.sce
new file mode 100644
index 000000000..a079f91d5
--- /dev/null
+++ b/1019/CH2/EX2.3/Example_2_3.sce
@@ -0,0 +1,15 @@
+//Example 2.3
+clear;
+clc;
+
+//Given
+p1=1013.25;//initial pressure in N m^-2
+p2=101325;//final pressure in N m^-2
+R=8.314;// gas constant in J K^-1 mol^-1
+T=300;// temperature in K
+n=0.5;//moles of oxygen present
+
+// To determine minimum work required
+w=n*R*T* log(p2/p1);// w in joule
+mprintf('minimum work required (w) = %f Joule',w);
+//end \ No newline at end of file