1 2 3 4 5 6 7 8
clear // Variable Declaration T_0=-5+273// K T_1=35+273// K // Calculation COP=(T_0)/(T_1-T_0)// Coefficient of performance printf("\n Carnot COP= %0.2f error",COP)