summaryrefslogtreecommitdiff
path: root/632/CH5/EX5.2/example5_2.sce
blob: 79229ae683bd9a52cb6e747ecfab63ec8310142f (plain)
1
2
3
4
5
6
7
//clc()
P = 10^7;//Pa;
N = 1000;
T = 500;//K
R = 8.314;//Pa * L / mol K
V = N * R * T / ( P * 1000);
disp("m^3",V,"(a)Volume of CO2 calculated using ideal gas equation = ")