summaryrefslogtreecommitdiff
path: root/3720/CH12/EX12.2/Ex12_2.sce
diff options
context:
space:
mode:
Diffstat (limited to '3720/CH12/EX12.2/Ex12_2.sce')
-rw-r--r--3720/CH12/EX12.2/Ex12_2.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/3720/CH12/EX12.2/Ex12_2.sce b/3720/CH12/EX12.2/Ex12_2.sce
new file mode 100644
index 000000000..a64d238c5
--- /dev/null
+++ b/3720/CH12/EX12.2/Ex12_2.sce
@@ -0,0 +1,16 @@
+//Example 12_2
+clc;clear;funcprot(0);
+// Given values
+V=200;// Velocity in m/s
+T=303;// Temperature in K
+//Properties
+k=1.4;// The specific heat ratio
+R=0.287;//The gas constant of air in kJ/(kg.K)
+
+//Calculation
+//(a)
+c=sqrt(k*R*T*1000);//The speed of sound in air at 30°C in m/s
+printf('(a)The speed of sound in air at 30°C ,c=%0.0f m/s\n',c);
+//(b)
+Ma=V/c;
+printf('(b)The Mach number ,Ma=%0.3f \n',Ma);