summaryrefslogtreecommitdiff
path: root/2975/CH27/EX27.3w/Ex27_3w.sce
blob: 76d384129b4f30ebb06211e5c96890fa904ba00e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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)");