From f35ea80659b6a49d1bb2ce1d7d002583f3f40947 Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Tue, 10 Oct 2017 12:38:01 +0530 Subject: updated the code --- 1472/CH16/EX16.2/16_2.sce | 35 ++++++++++++++++++----------------- 1 file changed, 18 insertions(+), 17 deletions(-) (limited to '1472/CH16/EX16.2') diff --git a/1472/CH16/EX16.2/16_2.sce b/1472/CH16/EX16.2/16_2.sce index b9336080e..5317d6746 100755 --- a/1472/CH16/EX16.2/16_2.sce +++ b/1472/CH16/EX16.2/16_2.sce @@ -1,17 +1,18 @@ -clc -//initialization of varaibles -e=0.75 -Ta=870 //R -Tc=1075//R -cp=0.24 -Td=550 //R -//calculations -Tadash=e*(Tc-Ta) +Ta -Tcdash=Tc+Ta-Tadash -Q1=cp*(Tb-Tadash) -Q2=cp*(Tcdash-Td) -Wnet=Q1-Q2 -eta=Wnet/Q1 -//results -printf("Net work done = %d B/lb",Wnet) -printf("\n efficiency = %.2f ",eta) +clc +//initialization of variables +e=0.75 +Ta=870 //R +Tc=1075//R +cp=0.24 +Td=550 //R +Tb=1700; +//calculations +Tadash=e*(Tc-Ta) +Ta +Tcdash=Tc+Ta-Tadash +Q1=cp*(Tb-Tadash) +Q2=cp*(Tcdash-Td) +Wnet=Q1-Q2 +eta=Wnet/Q1 +//results +printf("Net work done = %d B/lb",Wnet) +printf("\n efficiency = %.2f ",eta) \ No newline at end of file -- cgit