summaryrefslogtreecommitdiff
path: root/2870/CH8/EX8.6/Ex8_6.sce
blob: 5463ead688f82c7698f473aabdf74e250f5ffeb4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
clc;clear;
//Example 8.6

//given data
COP=1;
TL=283;//in K
TH=294;//in K

//calculations
COPHP=1/(1-TL/TH);
nII=COP/COPHP;
disp(nII,'the second law efficiency')