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 /2519/CH7/EX7.4/Ex7_4.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 '2519/CH7/EX7.4/Ex7_4.sce')
-rwxr-xr-x | 2519/CH7/EX7.4/Ex7_4.sce | 14 |
1 files changed, 14 insertions, 0 deletions
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")
|