summaryrefslogtreecommitdiff
path: root/2084/CH16/EX16.5w/16_5w.sce
blob: ec7fc1e6100e617da518f6bfdda97a9860720566 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//developed in windows XP operating system 32bit
//platform Scilab 5.4.1
clc;clear;
//example 16.5w
//calculation of the atmospheric temperature

//given data
v1=336//speed(in m/s) travelled by the sound
v0=332//speed(in m/s) of the sound at O degreecelsius
T0=0+273//temperature(in kelvin)

//calculation
T=((v1/v0)^2)*T0//temperature (in kelvin)
t=T-273//temperature(in degreecelsius)

printf('the atmospheric temperature is %d degreecelsius',round(t))