summaryrefslogtreecommitdiff
path: root/2837/CH13/EX13.10/Ex13_10.sce
blob: 272b78a17a6b42d1c83739c3147c9907940492ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
clc
clear
//Initialization of variables
A=[1 1; 0.5 1]
B=[1; 0.9]
x=0.9
//calculations
N2=x*79/21
C=A\B
vec= [ C(1) C(2) N2]
su=sum(vec)
vec2=vec/su *100
//results
printf("Volumetric analysis")
disp('CO      CO2      N2')
disp(vec2)