blob: 66df6020e4c3e3a3b96614758cc1d2f6c54e833b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
clc
clear
//Initialization of variables
T1=673 //K
T2=293 //K
//calculations
eta=(T1-T2)/T1
//results
if eta>=0.5 then
printf("Max efficiency = %.3f and an efficiency of 0.5 is possible",eta)
else
printf("Max efficiency = %.3f and an efficiency of 0.5 is not possible",eta)
end
|