summaryrefslogtreecommitdiff
path: root/3825/CH7/EX7.19/Ex7_19.sce
blob: f3ce8172dbe3e8ab650d3175a8a60b0ff622252d (plain)
1
2
3
4
5
clc
T=298 //temperature in kelvin
T1=523 //temperature in kelvin
T2=773 //temperature in kelvin
mprintf("Fraction of available energy lost=%f",(T*((1/T1)-(1/T2)))/(1-(T/T2)))//ans vary due to roundoff error