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 --- 1460/CH2/EX2.6/2_6.sce | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 1460/CH2/EX2.6/2_6.sce (limited to '1460/CH2/EX2.6') diff --git a/1460/CH2/EX2.6/2_6.sce b/1460/CH2/EX2.6/2_6.sce new file mode 100755 index 000000000..c2d40a4da --- /dev/null +++ b/1460/CH2/EX2.6/2_6.sce @@ -0,0 +1,14 @@ +clc +//initialization of variables +w=1 //lbm +T1=492 //R +T2=672 //R +cp=1 //B/lbm F +//calculations +dQ=cp*(T2-T1) +function [s]=ds(T) + s=1/T +endfunction +entropy=intg(T1,T2,ds) +//results +printf("Entropy change = %.3f B/lbm R",entropy) -- cgit