summaryrefslogtreecommitdiff
path: root/51/CH1/EX1.3/1_3.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /51/CH1/EX1.3/1_3.sce
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 '51/CH1/EX1.3/1_3.sce')
-rwxr-xr-x51/CH1/EX1.3/1_3.sce27
1 files changed, 27 insertions, 0 deletions
diff --git a/51/CH1/EX1.3/1_3.sce b/51/CH1/EX1.3/1_3.sce
new file mode 100755
index 000000000..e8f5b712f
--- /dev/null
+++ b/51/CH1/EX1.3/1_3.sce
@@ -0,0 +1,27 @@
+clc;
+clear;
+V=0.84;//ft^3
+p=50;//psi
+T=70;//degree farenheit
+atmp=14.7;//psi
+//the air density d=P/(RT)
+//1ft^2=144 inches^2
+d=((p+atmp)*144)/((1716)*(T+460));
+disp(d)
+//slugs/ft^3
+//weight of air
+W=d*32.2*V;
+//1lb=1 slug.ft/sq sec
+disp("lb",W,"W=")
+//taking various values of p a graph is plotted between W and p
+x= -20:60;
+for p= -20: 60
+ i=p+21;
+ y(1,i)=((p+atmp)*144/((1716)*(T+460)))*32.2*V;
+
+end
+plot(x,y)
+xtitle('W vs p','p.psi','W,lb')
+
+
+