summaryrefslogtreecommitdiff
path: root/2519/CH11/EX11.3/Ex11_3.sce
blob: f5cb5289f0a911446951e3114f948fef9e8d5523 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
clc
clear
//Initialization of variables
T1=900 //R
P1=100 //psia
P2=10 //psia
//calculations
disp("From table B-9")
pr1=8.411
pr2=pr1*P2/P1
T2=468 //R
//results
printf("Final temperature = %d R ",T2)