summaryrefslogtreecommitdiff
path: root/1922/CH7/EX7.5/7_5.sce
blob: efaaec18ca5aa359eaa6760f2ca5813ed9949762 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
clc
clear
//Initialization of variables
Pt=0.1013
ya=0.605
P1=0.1373
P2=0.06
xa=0.4
//calculations
if ya*Pt == xa*Pt & (1-ya)*Pt == (1-xa)*Pt then
    printf("The system is ideal")
else
    printf("The system is not ideal")
end