summaryrefslogtreecommitdiff
path: root/3825/CH7/EX7.1/Ex7_1.sce
blob: 4a4102aebae8a6fecb01547c5b941402d9dc414d (plain)
1
2
3
4
5
clc
T2=300 //temperature in Kelvin
T1=420 //temperature in Kelvin
Eta=1-(T2/T1)
mprintf("maximum possible efficiency=%f",Eta)//ans vary due to roundoff error