summaryrefslogtreecommitdiff
path: root/2735/CH7/EX7.3/Ex7_3.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2735/CH7/EX7.3/Ex7_3.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '2735/CH7/EX7.3/Ex7_3.sce')
-rwxr-xr-x2735/CH7/EX7.3/Ex7_3.sce19
1 files changed, 19 insertions, 0 deletions
diff --git a/2735/CH7/EX7.3/Ex7_3.sce b/2735/CH7/EX7.3/Ex7_3.sce
new file mode 100755
index 000000000..6b331133a
--- /dev/null
+++ b/2735/CH7/EX7.3/Ex7_3.sce
@@ -0,0 +1,19 @@
+clc
+clear
+//Initialization of variables
+tc=32 //F
+th=80 //F
+mw=5 //lbm
+mi=1 //lbm
+P=14.7 //psia
+cp=1
+//calculations
+t= (-144*mi+tc*mi+th*mw)/(mw+mi)
+ds1=144/(tc+460)
+ds2=cp*log((460+t)/(460+tc))
+dsice=ds1+ds2
+dswater=mw*cp*log((t+460)/(460+th))
+ds=dsice+dswater
+//results
+printf("Change in entropy of the process = %.4f Btu/R",ds)
+disp("The answer is a bit different due to rounding off error in textbook")