summaryrefslogtreecommitdiff
path: root/2165/CH1/EX1.2
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.2
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.2')
-rwxr-xr-x2165/CH1/EX1.2/1_2.sce13
1 files changed, 13 insertions, 0 deletions
diff --git a/2165/CH1/EX1.2/1_2.sce b/2165/CH1/EX1.2/1_2.sce
new file mode 100755
index 000000000..b122c01bb
--- /dev/null
+++ b/2165/CH1/EX1.2/1_2.sce
@@ -0,0 +1,13 @@
+clc
+//initialisation of variables
+v=2//ft^3
+v2=20//ft^3
+p=100000//ft lb
+v2=10.41//lb/in^2
+v3=10//lb/in^2
+p1=1.3//lb
+p2=(v2*199.5)/9.95//lb/in^2
+//CALCULATIONS
+P=(p2/v3-v2)//lb/in^2
+//RESULTS
+printf('The initial andfinal pressure=% f lb/in^2',P)