Wie rechne ich... die Durchschnittsgeschwindigkeit in einem Gas aus?

clear all;
%Konstanten
k_B = 1.38064852e-23
k_B = 1.3806e-23
R = 8.3144598
R = 8.3145
pStd = 1013.25e2
pStd = 101325
TZeroK = 273.15
TZeroK = 273.1500
g = 9.81
g = 9.8100
%Gegeben
N = 3
N = 3
f(1) = 3
f = 3
f(2) = 3
f = 1×2
3 3
f(3) = 3*N - 6
f = 1×3
3 3 3

Adiabatenexponent

kappa = (sum(f)+2)/sum(f)
kappa = 1.2222