Sei sulla pagina 1di 3

In[ ]:= t = {4.7, 25.7, 50.1, 78.

9};(*Temperatura[°C]*)

In[ ]:= T = t + 273.15;(*Temperatura en [K]*)

p = {5, 10, 20, 40};(*Presión [atm]*)

P = Log[p] // N;
logaritmo valor numérico
R = 8.314;(*Constante de los gases ideales*)

datos = Transpose1  T, P;


transposición
datos2 = Transpose[{T, p}];
transposición
ListPlot[datos, Frame → True, Joined → True,
representación de li⋯ marco verd⋯ unido verdadero
FrameLabel → {"1/T", "Ln (p)"}, PlotRange → {1, 4}]
etiqueta de marco rango de representación

4.0

3.5

3.0
Ln (p)

2.5

2.0

1.5

1.0
0.0029 0.0030 0.0031 0.0032 0.0033 0.0034 0.0035
1/T

ln (p) = - ΔHm
R
 1T  + ΔHm
RT0

Printed by Wolfram Mathematica Student Edition


2 pavel fisicoquimica problema 12.9.nb

In[ ]:= lm = LinearModelFit[datos, x, x]


ajusta a modelo lineal

Out[ ]= FittedModel 11.4766 - 2741.6 x 

In[ ]:= lm["AdjustedRSquared"]


Out[ ]= 1.

In[ ]:= deltaH = - 2741.6 * - R


Out[ ]= 22 793.7

deltaH
In[ ]:= T0 =
R * 11.4766
Out[ ]= 238.886

In[ ]:= lm["BestFitParameters"]


m = lm["BestFitParameters"][[2]]
b = lm["BestFitParameters"][[1]]
Out[ ]= {11.4766, - 2741.6}

Out[ ]= - 2741.6

Out[ ]= 11.4766

In[ ]:= m
Out[ ]= - 2741.6

ln (p) = - ΔHm
R
 1T  + ΔHm
RT0

ΔHm ΔH
p= ⅇ- R
+ RT0m

H H
In[ ]:= lm1 = NonlinearModelFitdatos2, Exp- + , {H, T1}, z
ajusta a modelo no lineal R*z
exponencial R * T1

2740.61
Out[ ]= FittedModel ⅇ11.4736- z

In[ ]:= w = {H, T1} /. lm1["BestFitParameters"]


Out[ ]= {22 785.4, 238.861}

Printed by Wolfram Mathematica Student Edition


pavel fisicoquimica problema 12.9.nb 3

Printed by Wolfram Mathematica Student Edition

Potrebbero piacerti anche