summaryrefslogtreecommitdiff
path: root/167/CH17/EX17.2
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /167/CH17/EX17.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 '167/CH17/EX17.2')
-rwxr-xr-x167/CH17/EX17.2/ex2.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/167/CH17/EX17.2/ex2.sce b/167/CH17/EX17.2/ex2.sce
new file mode 100755
index 000000000..56f60b8a9
--- /dev/null
+++ b/167/CH17/EX17.2/ex2.sce
@@ -0,0 +1,14 @@
+//ques2
+//Mach Number of Air Entering a Diffuser
+clear
+clc
+//(a) The speed of sound in air at 30°C is determined as
+k=1.4;
+R=0.287;//gas constant
+T=303;//air temperature in K
+c=sqrt(k*R*T*1000);//speed of light in m/s
+printf('(a) speed = %.0f m/s \n',c);
+//(b) Mach Mumber
+V=200;//speed in m/s
+Ma=V/c;
+printf(' (b) Mach number = %.3f ',Ma);