blob: 75aaf063f7a05a918fe2ba977ddf924c94ef55e5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
clc
clear
//INPUT
t1=288;//inital temperature in K
dv=1/2;//ratio of inital to final volume
y=1.4;//coefficient of expansion
//CALCULATIONS
t2=t1*(dv)^(y-1);//final temperature in K
//OUTPUT
mprintf('the final temperature is %3.1f K',t2)
|