blob: 45a445ad0768d9faecb562f679dafed2d90c76bf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
clc
clear
//INPUT
dv=10;//ratio of original volume to final volume
t1=293;//inital temperature in K
y=1.41;//coefficent of expansion
//CALCULATIONS
t2=t1*(dv)^(y-1);//final temperature in K
//OUTPUT
mprintf('the final temperature is %3.2f K',t2)
|