summaryrefslogtreecommitdiff
path: root/1571/CH8/EX8.13/Chapter8_Example13.sce
blob: 1907a2c2d936e1f70aa098b42ef03fa365f27763 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
clc
clear

//INPUT
m=5;//mass of air in gm
cv=0.172;//specific heat at constant volume cal/gm
dt=10;//changi in temperature in K

//CALCULATIONS
ie=m*cv*dt;//change in internal energy in cal

//OUTPUT
mprintf('change in internal energy is %3.2f cal',ie)