summaryrefslogtreecommitdiff
path: root/629/CH12/EX12.2/example12_2.sce
blob: d693c926ec7f24f3bb1a8abb74a707a19b6ae1bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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)