summaryrefslogtreecommitdiff
path: root/2837/CH10/EX10.12/Ex10_12.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.12/Ex10_12.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.12/Ex10_12.sce')
-rwxr-xr-x2837/CH10/EX10.12/Ex10_12.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/2837/CH10/EX10.12/Ex10_12.sce b/2837/CH10/EX10.12/Ex10_12.sce
new file mode 100755
index 000000000..b5936d4a7
--- /dev/null
+++ b/2837/CH10/EX10.12/Ex10_12.sce
@@ -0,0 +1,14 @@
+clc
+clear
+//Initialization of variables
+disp("From table 2 of keenan and keynes,")
+p1=98.87 //psia
+p2=31.78 //psia
+t1=80 //F
+h2=26.365 //btu/lb
+h1=11.554 //btu/lb
+hfg=67.203 //btu/lb
+//calculations
+x=(h2-h1)/hfg
+//results
+printf("The state of vapor leaving is %.2f psia with a quality of %.2f percent",p2,x*100)