summaryrefslogtreecommitdiff
path: root/2975/CH27/EX27.3w/Ex27_3w.sce
diff options
context:
space:
mode:
Diffstat (limited to '2975/CH27/EX27.3w/Ex27_3w.sce')
-rw-r--r--2975/CH27/EX27.3w/Ex27_3w.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/2975/CH27/EX27.3w/Ex27_3w.sce b/2975/CH27/EX27.3w/Ex27_3w.sce
new file mode 100644
index 000000000..76d384129
--- /dev/null
+++ b/2975/CH27/EX27.3w/Ex27_3w.sce
@@ -0,0 +1,17 @@
+//developed in windows 8 operating system 64bit
+//platform Scilab 5.4.1
+//example 27_3w
+
+clc;clear;
+//Given Data
+
+gamma1=1.4; //Value of ratio Cp/Cv i.e gamma (Unit: unitless)
+change_q=140; //Heat supplied to the gas (Unit:Joule)
+
+//Calculation
+
+change_u=change_q/gamma1; //Calculating change in internal energy (Unit:Joule)
+change_w=change_q-change_u; //Calculating work done by gas (Unit :Joule)
+
+disp(change_u,"The change in internal energy is (Unit: Joule)");
+disp(change_w,"Work done by the gas is (Unit: Joule)");