summaryrefslogtreecommitdiff
path: root/2165/CH1/EX1.9
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2165/CH1/EX1.9
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 '2165/CH1/EX1.9')
-rwxr-xr-x2165/CH1/EX1.9/1_9.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/2165/CH1/EX1.9/1_9.sce b/2165/CH1/EX1.9/1_9.sce
new file mode 100755
index 000000000..6e41d2ad7
--- /dev/null
+++ b/2165/CH1/EX1.9/1_9.sce
@@ -0,0 +1,14 @@
+clc
+//initialisation of variables
+v=10//ft^3
+p=100//lb/in^2
+p1=18//lb/in^2
+v1=50//ft^3
+n=log(p/p1)/log(5)
+gama=1.4//air
+//CALCULATIONS
+W=[144*(p*v-p1*v1)]/(n-1)//ft lb
+H=(gama-n)/(gama-1)*W//ft lb
+E=W-H//ft lb
+//RESULTS
+printf('The heat supplied and the change of internal energy=% f ft lb',E)