summaryrefslogtreecommitdiff
path: root/2837/CH23/EX23.1
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2837/CH23/EX23.1
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 '2837/CH23/EX23.1')
-rwxr-xr-x2837/CH23/EX23.1/Ex23_1.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/2837/CH23/EX23.1/Ex23_1.sce b/2837/CH23/EX23.1/Ex23_1.sce
new file mode 100755
index 000000000..a40aa3ce1
--- /dev/null
+++ b/2837/CH23/EX23.1/Ex23_1.sce
@@ -0,0 +1,15 @@
+clc
+clear
+//Initalization of variables
+pv=0.3631 //psia
+pa=14.7 //psia
+cp=0.24
+tw=70 //F
+td=80 //F
+hv1=1096.6 //Btu/lb
+hfb=38.06 //Btu/lb
+//calculations
+sh=0.622*pv/(pa-pv)
+sh1=(cp*tw -cp*td + sh*1054.3)/(hv1-hfb)
+//results
+printf("Specific humidity = %.5f lb/lb",sh1)