blob: 3c3f352a350b8bcf09a5bfc17b73c8913c023d35 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
clc
//initialization of variables
T1=500 //R
T2=1000 //R
w=2//lbm
//calculations
function[cp]=c(T)
cp=0.282+0.00046*T
endfunction
Q=intg(T1,T2,c)
Heat=Q*w
printf("Heat flow = %d B",Heat-2)
|