summaryrefslogtreecommitdiff
path: root/3689/CH5/EX5.1/5_1.sce
blob: 37b992a133dc49f6d8d7621369175e3fa78cc69e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
////Variable Declaration
Th = 500.
Tc = 200.     //Temeperatures IN Which reversible heat engine works, K
q = 1000.              //Heat absorbed by heat engine, J

//Calcualtions
eps = 1.-Tc/Th
w = eps*q

//Results
printf("\n Efficiency of heat engine is %4.3f",eps)

printf("\n Work done by heat engine is %4.1f J",w)