blob: 95c64eeb7f6fa109fc71a58dd591e901132033c2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
clc; funcprot(0);
//Example 3.5 Speed of sound
// Initialisation of variables
gma = 1.4;
P = 2116.2;
rho = 0.002378;
// Calculations
a = sqrt(gma*P/rho);
//Results
disp(a , "Speed of sound in standard pressure 2116.2 lbper sq ft, and standard density 0.002378slug per cu ft. (in ft/sec):");
|