summaryrefslogtreecommitdiff
path: root/2519/CH11/EX11.14
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2519/CH11/EX11.14
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 '2519/CH11/EX11.14')
-rwxr-xr-x2519/CH11/EX11.14/Ex11_14.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/2519/CH11/EX11.14/Ex11_14.sce b/2519/CH11/EX11.14/Ex11_14.sce
new file mode 100755
index 000000000..667ece799
--- /dev/null
+++ b/2519/CH11/EX11.14/Ex11_14.sce
@@ -0,0 +1,14 @@
+clc
+clear
+//Initialization of variables
+ps=0.5069 //psia
+p=20 //psia
+m1=0.01
+m2=1
+M1=18
+M2=29
+//calculations
+xw= (m1/M1)/(m1/M1+m2/M2)
+pw=xw*p
+//results
+printf("partial pressure of water vapor = %.3f psia",pw)