summaryrefslogtreecommitdiff
path: root/944/CH5/EX5.23/example5_23_TACC.sce
blob: 1d7f9a995bc589179296eb8b5e3ab7130539fb52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//example 5.23

clear;
clc;

//Given:
a=1.39*10^-2;//constant for a vanderwaal's gas[lit2.atm/mol2]
b=3.92*10^-2;//constant for a vanderwaal's gas[lit2.atm/mol2]
R=0.082;//Universal gas constant[lit.atm/deg/mol]

//To find the value of the inversion temperature for the gas
Ti=(2*a)/(R*b);//inversion temperature [K]
printf("The inversion temperature for the gas is %f K",Ti);