summaryrefslogtreecommitdiff
path: root/2666/CH14/EX14.1
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2666/CH14/EX14.1
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 '2666/CH14/EX14.1')
-rwxr-xr-x2666/CH14/EX14.1/Ex14_1.sce21
1 files changed, 21 insertions, 0 deletions
diff --git a/2666/CH14/EX14.1/Ex14_1.sce b/2666/CH14/EX14.1/Ex14_1.sce
new file mode 100755
index 000000000..db4c0abb6
--- /dev/null
+++ b/2666/CH14/EX14.1/Ex14_1.sce
@@ -0,0 +1,21 @@
+
+clc
+//initialisation of variables
+t1=240//F
+t2=2540//F
+t=460//F
+p=21781//ft
+h=5050//ft
+q=1270//ft
+w=4567//Btu
+f=1545//ft
+//CALCULATIONS
+T2=t2+t//R
+T1=t+t1//R
+Q=p-h+q//Btu per mol
+U=Q-w//Btu
+W=Q-U//Btu
+W1=1*f*(T2-T1)//ft-lb
+W2=Q/(1*(T2-T1))//Btu per mol per deg
+//RESULTS
+printf('the constant pressure and work done=% f Btu per mol per deg',W2)