summaryrefslogtreecommitdiff
path: root/629/CH12/EX12.2/example12_2.sce
diff options
context:
space:
mode:
Diffstat (limited to '629/CH12/EX12.2/example12_2.sce')
-rw-r--r--629/CH12/EX12.2/example12_2.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/629/CH12/EX12.2/example12_2.sce b/629/CH12/EX12.2/example12_2.sce
new file mode 100644
index 000000000..d693c926e
--- /dev/null
+++ b/629/CH12/EX12.2/example12_2.sce
@@ -0,0 +1,16 @@
+clear
+clc
+//Example 12.2 MACH-NUMBER CALCULATION
+z=13; //[km]
+alpha=5.87; //[K/km]
+To=296; //[K]
+//Temperature at z
+T=To-alpha*z //[K]
+R=287; //[J/Kg.K]
+k=1.4;
+//Speed of sound
+c=sqrt(k*R*T) //[m/s]
+V=470; //speed of fighter[m/s]
+//Mach number
+M=V/c
+printf("\n The Mach number of the aircraft, M = %.2f.\n",M) \ No newline at end of file