summaryrefslogtreecommitdiff
path: root/1019/CH3/EX3.1/Example_3_1.sce
blob: f34af9008f8ebc7fd168ae5f425a32692189a689 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//Example 3.1
clear;
clc;

//Given 
delE = -97030;//change in internal energy in Joule
R = 8.314;//R is gas constant in J K^-1 mol^-1
T = 298;//T is temperature in K

//To determine the heat of reaction
delv= 1-(1+(1/2));//change in moles
delH = delE + (delv*R*T);//H is the heat of the reaction in Joule (1st law of thermodynamics)
mprintf('Heat of the reaction= %f J',delH);
//end