From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 2519/CH7/EX7.4/Ex7_4.sce | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 2519/CH7/EX7.4/Ex7_4.sce (limited to '2519/CH7/EX7.4') diff --git a/2519/CH7/EX7.4/Ex7_4.sce b/2519/CH7/EX7.4/Ex7_4.sce new file mode 100755 index 000000000..80e3380a9 --- /dev/null +++ b/2519/CH7/EX7.4/Ex7_4.sce @@ -0,0 +1,14 @@ +clc +clear +//Initialization of variables +cp=1 +T2=60 //F +T1=100 //F +ta=32 //F +//calculations +dq=cp*(T2-T1) +ds=cp*log((460+T2)/(460+T1)) +dE=dq-ds*(ta+460) +//results +printf("Change in available energy = %.1f Btu/lbm",dE) +disp("The answer is a bit different due to rounding off error in textbook") -- cgit