blob: 09479cb8c84b777d6888bebca61f9ac6b5b4e829 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
clc
clear
//INPUT
t=273;//temperature of earth at height h in K
p=760;//pressure in mm of hg
dp=1;//change in pressure in mm of hg
y=1.418;//coefficient of expansion
//CALCULATIONS
dt=((y-1)/y)*dp*t/p;//change in temperature in deg.C
//OUTPUT
mprintf('the change in temperature is %3.3f deg.C',dt)
|