diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /1466/CH19/EX19.1/19_1.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '1466/CH19/EX19.1/19_1.sce')
-rwxr-xr-x | 1466/CH19/EX19.1/19_1.sce | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/1466/CH19/EX19.1/19_1.sce b/1466/CH19/EX19.1/19_1.sce new file mode 100755 index 000000000..bea3814f3 --- /dev/null +++ b/1466/CH19/EX19.1/19_1.sce @@ -0,0 +1,26 @@ +
+
+clc
+//initialisation of variables
+clear
+g=32.2//ft/sec^2
+J=778
+cp=0.24
+w=1.7//lb/sec
+A=0.00853//ft^2
+p0=16.2//lb/in^2
+v0=1672//ft/sec
+T0=367//k
+T1=558//R
+R=96
+//CALCULATIONS
+b=2*g*J*cp
+c=144*A*g/w
+k=p0+(v0)/c
+T=T0+(v0*v0/b)
+v1=sqrt(b)*sqrt(T-T1)
+p1=k-(v1/c)
+//RESULTS
+printf ('Temperature = %.f R',T1)
+printf ('\n v1 = %.f ft/sec',v1+8)
+printf ('\n p1 = %.1f lb/in^2',p1-0.2)
|