diff options
Diffstat (limited to '23/CH2/EX2.3/Example_2_3.sce')
-rwxr-xr-x | 23/CH2/EX2.3/Example_2_3.sce | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/23/CH2/EX2.3/Example_2_3.sce b/23/CH2/EX2.3/Example_2_3.sce new file mode 100755 index 000000000..3917135a7 --- /dev/null +++ b/23/CH2/EX2.3/Example_2_3.sce @@ -0,0 +1,22 @@ +clear;
+clc;
+
+//Example 2.3
+//Caption : Program to find the energy change in a System
+
+//Given values
+
+P_atm=101.3;//Atm Pressure=101.3KPa
+V1=0.1;//Volume1=0.1m^3
+V2=0.2;//Volume2=0.2m^3
+
+//Solution
+
+del_V=V2-V1;
+W_by=P_atm*del_V;
+W_on=-W_by;
+Q=0;
+del_Energy=Q+W_on;//KJ
+disp('KJ',del_Energy,'Energy Change')
+
+//End
|