blob: fb3922ddc22641168b035aef6a633c60c821be00 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
clc
clear
//Initialization of variables
x=[0.15 0.08 0.77]
M=[44 32 28]
//calculations
y=x ./M
yt=sum(y)
mt=y/yt
per=mt*100
wt=1/yt
R=1545/wt
//results
printf("Volumetric analysis")
disp('percent by volume')
format('v',6);per
disp(per)
printf("Weight per mole = %.1f lb",wt)
printf("\n Gas constant = %.1f ",R)
|