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.4 | |
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.4')
-rwxr-xr-x | 2735/CH7/EX7.4/Ex7_4.sce | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/2735/CH7/EX7.4/Ex7_4.sce b/2735/CH7/EX7.4/Ex7_4.sce new file mode 100755 index 000000000..819bd31d6 --- /dev/null +++ b/2735/CH7/EX7.4/Ex7_4.sce @@ -0,0 +1,16 @@ +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)
+dec=dq-dE
+//results
+printf("Change in available energy = %.1f Btu/lbm",dE)
+printf("\n The available energy of the isolated system decreased in the amount of %.1f Btu/lbm",dec)
+disp("The answer is a bit different due to rounding off error in textbook")
|