summaryrefslogtreecommitdiff
path: root/2870/CH12/EX12.1/Ex12_1.sce
blob: 3eca56b2bef2b5b0a0aaf82bd186151253732b62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
clc;clear;
//Example 12.1

//given data
h1=305.22;
T1=305;
h2=295.17;
T2=295;

//calculations
//from the given equation we can calculate
cp=(h1-h2)/(T1-T2);
disp(cp,'the cp of air at 300 K in kJ/ kg - K')