summaryrefslogtreecommitdiff
path: root/555/CH3/EX3.1/1.sce
diff options
context:
space:
mode:
Diffstat (limited to '555/CH3/EX3.1/1.sce')
-rw-r--r--555/CH3/EX3.1/1.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/555/CH3/EX3.1/1.sce b/555/CH3/EX3.1/1.sce
new file mode 100644
index 000000000..c6e5a51b2
--- /dev/null
+++ b/555/CH3/EX3.1/1.sce
@@ -0,0 +1,17 @@
+// Implementation of example 3.1
+// Basic and Applied Thermodynamics by P.K.Nag
+// page 54
+
+clc
+clear
+
+P=760 //(mm Hg)
+dv=0.5 //(m^3)
+// since P is in mm Hg and change in volume(dv) is in m^3,so we'll change the unit of pressure
+p=101.325 //(kN/m^2)
+
+Wd=(p*dv);
+disp("work done by system =")
+disp(Wd)
+disp("kJ")
+// in this work is done by the system,so it is positive