summaryrefslogtreecommitdiff
path: root/944/CH5/EX5.31/example5_31_TACC.sce
blob: 3e01eb3fee6a5c8a3d10a295eecd92deba6c1b52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//example 5.31

clear;
clc;

//Given:
c=1;//no. of components
p=1;//no. of phases

//To find the values of degrees of freedom
F=c-p+2;//Degrees of freedom
printf("Degrees of freedom is %f\n\n",F);
disp("Degrees of freedom 2 means both the pressure and temperature can be varied independently");