blob: 5d17e1375d7a81f6e3c83513347714a96153e137 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
//Calculate the Enthalpy Change for heating of 1.46 moles of Oxygen
//Example 4.6
clc;
clear;
n=1.46; //Number of moles of Oxygen
function x=Cp(T) ,x=(25.7+0.0130*T), endfunction //Molar Heat Capacity of Oxygen at Constant Pressure in J K^-1 mol^-1
function y=f(T),y=n*Cp(T),endfunction
delH=intg(298,367,f); //Enthalpy Change in J
printf("Enthalpy Change = %.2f*10^3 J",delH*10^-3)
|