summaryrefslogtreecommitdiff
path: root/1472/CH2
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1472/CH2
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 '1472/CH2')
-rwxr-xr-x1472/CH2/EX2.1/2_1.sce11
-rwxr-xr-x1472/CH2/EX2.2/2_2.sce11
-rwxr-xr-x1472/CH2/EX2.3/2_3.sce13
3 files changed, 35 insertions, 0 deletions
diff --git a/1472/CH2/EX2.1/2_1.sce b/1472/CH2/EX2.1/2_1.sce
new file mode 100755
index 000000000..7d25cbdaa
--- /dev/null
+++ b/1472/CH2/EX2.1/2_1.sce
@@ -0,0 +1,11 @@
+clc
+//Initialization of variables
+g=1.4
+P=100 //psia
+V1=3 //cu ft
+Pf=20 //psia
+//calculations
+V2=V1*(P/Pf)^(1/g)
+W=(Pf*V2-P*V1)*144/(1-g)
+//results
+printf("Net work done = %d ft",W)
diff --git a/1472/CH2/EX2.2/2_2.sce b/1472/CH2/EX2.2/2_2.sce
new file mode 100755
index 000000000..78ac6a6af
--- /dev/null
+++ b/1472/CH2/EX2.2/2_2.sce
@@ -0,0 +1,11 @@
+clc
+//Initialization of variables
+Wb=-33000 //ft-lb
+V2=3 //cu ft
+V1=1 //cu ft
+P=69.4 //psia
+//calculations
+Wa=P*(V2-V1)*144
+W=Wa+Wb
+//results
+printf("Net work done = %d ft-lb",W)
diff --git a/1472/CH2/EX2.3/2_3.sce b/1472/CH2/EX2.3/2_3.sce
new file mode 100755
index 000000000..0b008999e
--- /dev/null
+++ b/1472/CH2/EX2.3/2_3.sce
@@ -0,0 +1,13 @@
+clc
+//Initialization of variables
+b=11 //in
+s=15 //in
+l=2.4 //in
+k=80 //psi per in
+//calculations
+a=%pi*b^2 /4
+L=s/12
+Pm=1.6/l *k
+W=Pm*a*L
+//results
+printf("Net work done = %d ft lb",W)