diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /2735/CH7/EX7.3/Ex7_3.sce | |
download | Scilab-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-x | 2735/CH7/EX7.3/Ex7_3.sce | 19 |
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")
|