summaryrefslogtreecommitdiff
path: root/1100/CH3/EX3.2/3_2.sce
blob: f32e42f0b0c0d774e1537757b28879993c654a17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
clc
//initialisation of variables
m=5 //lb
T1=1540 +460 //R
T2=540+460 //R
//CALCULATIONS
function [cp]=cp(T)
    cp=0.248+0.448*10^-8 *T*T
endfunction
Q=m*intg(T1,T2,cp)
//Results
printf ('Net heat transferred to the system = %.2f Btu',Q)