summaryrefslogtreecommitdiff
path: root/1460/CH7/EX7.6
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1460/CH7/EX7.6
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 '1460/CH7/EX7.6')
-rwxr-xr-x1460/CH7/EX7.6/7_6.sce22
1 files changed, 22 insertions, 0 deletions
diff --git a/1460/CH7/EX7.6/7_6.sce b/1460/CH7/EX7.6/7_6.sce
new file mode 100755
index 000000000..8874fb274
--- /dev/null
+++ b/1460/CH7/EX7.6/7_6.sce
@@ -0,0 +1,22 @@
+clc
+//initialization of variables
+P1=14.7 //lb/in^2
+P2=20 //lb/in^2
+w=1 //lbm
+//calculations
+printf("From table 3 of appendix,")
+v1=26.8
+h1=1150.4
+s1=1.7566
+u1=h1- 144*P1*v1/778
+printf("\n Internal energy 1 = %.1f B/lbm",u1)
+disp("For pressure of 20 lb/in^2 , from table 2,")
+v2=26.8
+h2=1260.9
+s2=1.8637
+u2=h2-144*P2*v2/778
+du=u2-u1
+ds=s2-s1
+//results
+printf("\n Change in internal energy = %.1f B/lbm",du)
+printf("\n CHange in entropy = %.4f B/lbm R",ds)