summaryrefslogtreecommitdiff
path: root/2837/CH10/EX10.13/Ex10_13.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2837/CH10/EX10.13/Ex10_13.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 '2837/CH10/EX10.13/Ex10_13.sce')
-rwxr-xr-x2837/CH10/EX10.13/Ex10_13.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/2837/CH10/EX10.13/Ex10_13.sce b/2837/CH10/EX10.13/Ex10_13.sce
new file mode 100755
index 000000000..9dfad50f4
--- /dev/null
+++ b/2837/CH10/EX10.13/Ex10_13.sce
@@ -0,0 +1,17 @@
+clc
+clear
+//Initialization of variables
+ps=216 //psig
+pb=29.12 //in of Hg
+p2=0.4 //in
+t2=244 //F
+//calculations
+pa=0.491*pb
+pabs=pa + p2*0.491
+plb=pa+ ps
+hcal=1166.5 //Btu/lb
+h2=1200.1 //Btu/lb
+h3=831.9 //Btu/lb
+y=-(hcal-h2)/h3
+//results
+printf("Mean state in the line is %.1f psia with a moisture content of %.2f percent",plb,y*100)