arrhenius_fit
Arrhenius and Eyring analysis of rate constants measured at several temperatures: activation energy and pre-exponential factor, activation enthalpy, entropy and free energy, each with its least-squares standard error; the rate, half-life and shelf life predicted at another temperature for a reaction of order 0, 1 or 2; Q10. Unweighted straight lines of ln k and ln(k/T) against 1/T.
- Field
- Chemistry
- Version
- 0.1.0
- Runs as
- Compiled (Rust)
- Typical run
- 0.05 s
Compiled from source: run sh packs/install.sh once before admitting it.
Known answers it must pass
r0001closed form: exact k = A exp(-Ea/RT) with Ea = 50 kJ/mol, A = 1e10 /s at 280-360 K gives both back, and k, t90 = ln(10/9)/k, t1/2 = ln2/k, Q10 = exp(Ea/R * 10/(T(T+10))) at 298.15 K (1e-9: round-off only)passed
ea_kJ_per_mol50 ± 5e-0850lockedunder 0.01 % of the tolerance usedprefactor_per_s1e+10 ± 101e+10lockedunder 0.01 % of the tolerance usedln_a23.0259 ± 2.3e-0823.0259lockedunder 0.01 % of the tolerance usedr21 ± 1e-121lockedunder 0.01 % of the tolerance usedk_pred_per_s17.3932 ± 1.7e-0817.3932lockedunder 0.01 % of the tolerance usedshelf_life_s0.00605758 ± 6.1e-120.00605758lockedunder 0.01 % of the tolerance usedhalf_life_s0.0398517 ± 4e-110.0398517lockedunder 0.01 % of the tolerance usedq101.92426 ± 1.9e-091.92426lockedunder 0.01 % of the tolerance usedextrapolation_K= 0.00.0lockedexact matchfit_ok= truetruelockedexact matchr0002closed form, two points: Ea = R ln(k2/k1)/(1/T1 - 1/T2) for k doubling from 298 K to 308 K; Q10 at 298 K is exactly 2; no standard error with two points (1e-9: round-off only)passed
ea_kJ_per_mol52.8965 ± 5.3e-0852.8965lockedunder 0.01 % of the tolerance usedq102 ± 2e-092lockedunder 0.01 % of the tolerance usedk_pred_per_s0.001 ± 1e-120.001lockedunder 0.01 % of the tolerance usedea_se_kJ_per_mol= lockedexact matchdegrees_of_freedom= 00lockedexact matchr0003textbook value: a rate that doubles from 298 K to 308 K has Ea = 52.89 kJ/mol (quoted to 4 figures with R = 8.314; 0.01 kJ/mol covers that rounding)passed
ea_kJ_per_mol52.89 ± 0.0152.8965locked65 % of the tolerance usedr0004closed form: exact Eyring data k = (kB T/h) exp(dS/R) exp(-dH/RT) with dH = 80 kJ/mol, dS = -40 J/(mol K) gives both back, and dG(298.15 K) = dH - T dS = 91.926 kJ/mol (1e-9: round-off only)passed
dh_kJ_per_mol80 ± 8e-0880lockedunder 0.01 % of the tolerance usedds_J_per_molK-40 ± 4e-08-40lockedunder 0.01 % of the tolerance useddg_kJ_per_mol91.926 ± 9.2e-0891.926lockedunder 0.01 % of the tolerance usedeyring_r21 ± 1e-121lockedunder 0.01 % of the tolerance usedr0005closed form: Eyring k = (kB T/h) exp(-dG/RT), so k = 1 /s at 298.15 K means dG = R T ln(kB T/h) = 73.02 kJ/mol (1e-9: round-off only)passed
dg_kJ_per_mol73.0241 ± 7.3e-0873.0241lockedunder 0.01 % of the tolerance usedk_pred_per_s1 ± 1e-091lockedunder 0.01 % of the tolerance usedr0006closed form: the same with a transmission coefficient of 0.5: dG = R T ln(kappa kB T/h) (1e-9: round-off only)passed
dg_kJ_per_mol71.3058 ± 7.1e-0871.3058lockedunder 0.01 % of the tolerance usedr0007closed form for least-squares errors: three points equally spaced in 1/T with residuals (+e, -2e, +e) orthogonal to the line: se(Ea) = R sqrt(3) e/d, se(ln A) = sqrt(6) e sqrt(1/3 + xm^2/(2 d^2)), sd = sqrt(6) e, se(ln k) at the mean = sqrt(2) e (1e-7: the residuals are 1e-2 on logarithms of order 1, so round-off is magnified)passed
ea_kJ_per_mol49.8868 ± 5e-0649.8868lockedunder 0.01 % of the tolerance usedea_se_kJ_per_mol0.720054 ± 7.2e-080.720054lockedunder 0.01 % of the tolerance usedln_a20 ± 2e-0620lockedunder 0.01 % of the tolerance usedln_a_se0.277489 ± 2.8e-080.277489lockedunder 0.01 % of the tolerance usedresidual_sd_ln_k0.0244949 ± 2.4e-090.0244949lockedunder 0.01 % of the tolerance usedk_pred_rel_se0.0141421 ± 1.4e-090.0141421lockedunder 0.01 % of the tolerance usedr20.999792 ± 1e-090.999792lockedunder 0.01 % of the tolerance usedmax_abs_residual_ln_k0.02 ± 2e-090.02lockedunder 0.01 % of the tolerance usedr0008closed form for the Eyring errors: the same construction on ln(k/T): se(dH) = R sqrt(3) e/d, se(dS) = R sqrt(6) e sqrt(1/3 + xm^2/(2 d^2)), se(dG) at the mean = R T sqrt(2) e (1e-7, as above)passed
dh_kJ_per_mol74.8302 ± 7.5e-0674.8302lockedunder 0.01 % of the tolerance useddh_se_kJ_per_mol0.720054 ± 7.2e-080.720054lockedunder 0.01 % of the tolerance usedds_J_per_molK-47.8911 ± 4.8e-06-47.8911lockedunder 0.01 % of the tolerance usedds_se_J_per_molK2.30717 ± 2.3e-072.30717lockedunder 0.01 % of the tolerance useddg_se_kJ_per_mol0.0367451 ± 3.7e-090.0367451lockedunder 0.01 % of the tolerance useddg_kJ_per_mol89.7961 ± 9e-0689.7961lockedunder 0.01 % of the tolerance usedr0009closed form, zero order: t90 = 0.1 C0/k = 250000 s and t1/2 = C0/(2k) = 1.25e6 s for k = 2e-7 mol/(L s), C0 = 0.5 mol/L (1e-9)passed
shelf_life_s250000 ± 0.00025250000lockedunder 0.01 % of the tolerance usedhalf_life_s1.25e+06 ± 0.00131.25e+06lockedunder 0.01 % of the tolerance usedr0010closed form, second order: t90 = (1/0.9 - 1)/(k C0) and t1/2 = 1/(k C0) = 1e7 s for k = 2e-7 L/(mol s), C0 = 0.5 mol/L (1e-9)passed
shelf_life_s1.11111e+06 ± 0.00111.11111e+06lockedunder 0.01 % of the tolerance usedhalf_life_s1e+07 ± 0.011e+07lockedunder 0.01 % of the tolerance usedr0011closed form, first order with 80 % remaining: t80 = ln(1/0.8)/k and t1/2 = ln 2/k for k = 2e-7 /s, independent of C0 (1e-9)passed
shelf_life_s1.11572e+06 ± 0.00111.11572e+06lockedunder 0.01 % of the tolerance usedhalf_life_s3.46574e+06 ± 0.00353.46574e+06lockedunder 0.01 % of the tolerance used
Each line is one reading the kernel checked. The bright band is the tolerance; the needle is the value the instrument actually returned when it was admitted. A needle near the centre line used little of its tolerance.
Inputs
| Name | Unit | Default | Meaning |
|---|---|---|---|
temperatures_K | K | Absolute temperatures of the measurements, kelvin (add 273.15 to degrees Celsius). At least two different ones; three or more for standard errors. | |
rate_constants | 1/s | One rate constant per temperature, above zero. First order: 1/s. Zero order: mol/(L s); second order: L/(mol s) (pass those with 'unchecked' when chaining). | |
predict_temperature_K | K | 298.15 | Temperature at which the rate, the shelf life, Q10 (to this temperature plus 10 K) and the free energy of activation are reported. |
shelf_fraction_remaining | 1 | 0.9 | Shelf life is the time until this fraction of the starting amount remains (0.9 is t90). |
reaction_order | 1 | 1 | Order of the rate law used for half-life and shelf life: 0, 1 or 2 (one reactant). |
initial_conc_mol_per_L | mol/L | 1.0 | Starting concentration; it sets the times for orders 0 and 2 and does not matter for order 1. |
transmission_coefficient | 1 | 1.0 | Kappa in the Eyring equation k = kappa (kB T/h) exp(-dG/RT). |
r2_min | 1 | 0.98 | The Arrhenius line is said to hold when R2 of ln k against 1/T is at least this. |
Readings
| Name | Unit | Meaning |
|---|---|---|
point_count | 1 | |
degrees_of_freedom | 1 | points minus 2; standard errors are null when it is 0 |
lowest_temperature_K | K | |
highest_temperature_K | K | |
ea_kJ_per_mol | kJ/mol | Arrhenius activation energy, -R times the slope of ln k against 1/T |
ea_se_kJ_per_mol | kJ/mol | its standard error |
ln_a | 1 | natural logarithm of the pre-exponential factor (in the unit of the rate constants) |
ln_a_se | 1 | |
log10_a | 1 | |
prefactor_per_s | 1/s | pre-exponential factor A, in the unit of the rate constants (1/s for first order); null if it overflows |
r2 | 1 | R2 of ln k against 1/T |
residual_sd_ln_k | 1 | standard deviation of the residuals in ln k; about the relative scatter of k |
max_abs_residual_ln_k | 1 | |
dh_kJ_per_mol | kJ/mol | Eyring enthalpy of activation |
dh_se_kJ_per_mol | kJ/mol | |
ds_J_per_molK | J/(mol K) | Eyring entropy of activation (rate constants in 1/s; standard state 1 mol/L for second order) |
ds_se_J_per_molK | J/(mol K) | |
dg_kJ_per_mol | kJ/mol | Eyring free energy of activation at predict_temperature_K, dH - T dS |
dg_se_kJ_per_mol | kJ/mol | its standard error, from the Eyring line at that temperature (dH and dS are strongly correlated, so it is far smaller than their errors combined) |
eyring_r2 | 1 | R2 of ln(k/T) against 1/T |
predict_temperature_K | K | |
k_pred_per_s | 1/s | rate constant on the Arrhenius line at predict_temperature_K, in the unit of the rate constants |
k_pred_rel_se | 1 | standard error of ln k there: the relative error of k, and of the half-life and shelf life |
half_life_s | s | |
shelf_life_s | s | time until shelf_fraction_remaining is left, at predict_temperature_K |
q10 | 1 | k(T + 10 K)/k(T) at T = predict_temperature_K, on the Arrhenius line |
extrapolation_K | K | how far predict_temperature_K lies outside the measured range (0 inside it) |
fit_ok | true when R2 is at least r2_min | |
warnings | what to know before trusting the numbers | |
points | the first 200 points against the line | |
files | out/arrhenius_plot.csv (both linear plots, every point), out/prediction_curve.csv (rate, half-life and shelf life over temperature) |
Try the call
Change a value and the command updates. Nothing runs here; paste it into your terminal or give it to your agent.