summaryrefslogtreecommitdiff
path: root/1052/CH15/EX15.2/152.sce
blob: 684693fd9309ece990d93d2d800d7599fd904c57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
clc;
//Example 15.2
//page no 169
printf(" Example 15.2 page no 169\n\n");
//nitrogen gas is flowing in a duct,neglect compressibility effects
T=293//temperature,k
R=8314.4//gas constant
k=1.4//for nitrogen
M=28//molecular weight of nitrogen
c=sqrt(k*R*T/M)//speed of sound in nitrogen 
printf("\n speed of sound on nitrogen c=%f m/s",c);
v=82//flow velocity 
M_a=v/c//mach no.
printf("\n mach no. M_a=%f ",M_a);