summaryrefslogtreecommitdiff
path: root/647/CH5/EX5.9/Example5_9.sce
blob: fb65ac17ad83a4fab06c9d23bc02c0c4bffa4a06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
clear;
clc;

// Example: 5.9
// Page: 164

printf("Example: 5.9 - Page: 164\n\n");

// Solution

//*****Data*****//
n = 8;// [mol]
R = 8.314;// [J/mol K]
T2 = 700;// [K]
T1 = 350;// [K]
Cp = (5/2)*R;// [J/mol K]
//*************//

deltaS = n*Cp*log(T2/T1);// [J/K]
printf("deltaS is %.2f J/K",deltaS);