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 /2504/CH6/EX6.4/6_4.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 '2504/CH6/EX6.4/6_4.sce')
-rwxr-xr-x | 2504/CH6/EX6.4/6_4.sce | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/2504/CH6/EX6.4/6_4.sce b/2504/CH6/EX6.4/6_4.sce new file mode 100755 index 000000000..fae855944 --- /dev/null +++ b/2504/CH6/EX6.4/6_4.sce @@ -0,0 +1,25 @@ +clc
+//initialisation of variables
+clear
+r= 1.4
+g= 32.2 //ft/sec^2
+R= 53.3 //lbf ft/lbm
+T= 32 //C
+T1= 2000 //R
+r1= 1.32
+p= 1440 //lbf/in^2
+v1= 1.2306 //ft^3/lbm
+v2= 1.2546 //ft^3/lbm
+bm= 3.13*10^5 //lbf/in^2
+w= 62.4 //lbf/ft^3
+//CALCULATIONS
+a1= sqrt(r*R*(460+T)*g)
+a2= sqrt(r1*R*T1*g)
+r2= p/(v1-v2)
+a3= sqrt(-g*(v1+v2)^2*0.5^2*r2)
+a4= sqrt(bm*144*g/w)
+//RESULTS
+printf ('Acoustic veloctiy = %.f ft/sec',a1)
+printf ('\n Acoustic veloctiy = %.f ft/sec',a2)
+printf ('\n Acoustic veloctiy = %.f ft/sec',a3)
+printf ('\n Acoustic veloctiy = %.f ft/sec',a4)
|