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')