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 = 10¹⁰ /s at 280-360 K gives both back, and k, t90 = ln(10/9)/k, t₁/2 = ln2/k, Q10 = exp(Ea/R · 10/(T(T+10))) at 298.15 K (10⁻⁹: round-off only)passed
ea_kJ_per_mol50 ± 5 × 10⁻⁸50lockedunder 0.01 % of the tolerance usedprefactor_per_s10¹⁰ ± 1010¹⁰lockedunder 0.01 % of the tolerance usedln_a23.0259 ± 2.3 × 10⁻⁸23.0259lockedunder 0.01 % of the tolerance usedr21 ± 10⁻¹²1lockedunder 0.01 % of the tolerance usedk_pred_per_s17.3932 ± 1.7 × 10⁻⁸17.3932lockedunder 0.01 % of the tolerance usedshelf_life_s0.00605758 ± 6.1 × 10⁻¹²0.00605758lockedunder 0.01 % of the tolerance usedhalf_life_s0.0398517 ± 4 × 10⁻¹¹0.0398517lockedunder 0.01 % of the tolerance usedq101.92426 ± 1.9 × 10⁻⁹1.92426lockedunder 0.01 % of the tolerance usedextrapolation_K= 0.00.0lockedexact matchfit_ok= truetruelockedexact matchr0002closed form, two points: Ea = R ln(k₂/k₁)/(1/T₁ - 1/T₂) for k doubling from 298 K to 308 K; Q10 at 298 K is exactly 2; no standard error with two points (10⁻⁹: round-off only)passed
ea_kJ_per_mol52.8965 ± 5.3 × 10⁻⁸52.8965lockedunder 0.01 % of the tolerance usedq102 ± 2 × 10⁻⁹2lockedunder 0.01 % of the tolerance usedk_pred_per_s0.001 ± 10⁻¹²0.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 (10⁻⁹: round-off only)passed
dh_kJ_per_mol80 ± 8 × 10⁻⁸80lockedunder 0.01 % of the tolerance usedds_J_per_molK-40 ± 4 × 10⁻⁸-40lockedunder 0.01 % of the tolerance useddg_kJ_per_mol91.926 ± 9.2 × 10⁻⁸91.926lockedunder 0.01 % of the tolerance usedeyring_r21 ± 10⁻¹²1lockedunder 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 (10⁻⁹: round-off only)passed
dg_kJ_per_mol73.0241 ± 7.3 × 10⁻⁸73.0241lockedunder 0.01 % of the tolerance usedk_pred_per_s1 ± 10⁻⁹1lockedunder 0.01 % of the tolerance usedr0006closed form: the same with a transmission coefficient of 0.5: dG = R T ln(κ kB T/h) (10⁻⁹: round-off only)passed
dg_kJ_per_mol71.3058 ± 7.1 × 10⁻⁸71.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 √(3) e/d, se(ln A) = √(6) e √(1/3 + xm²/(2 d²)), sd = √(6) e, se(ln k) at the mean = √(2) e (10⁻⁷: the residuals are 10⁻² on logarithms of order 1, so round-off is magnified)passed
ea_kJ_per_mol49.8868 ± 5 × 10⁻⁶49.8868lockedunder 0.01 % of the tolerance usedea_se_kJ_per_mol0.720054 ± 7.2 × 10⁻⁸0.720054lockedunder 0.01 % of the tolerance usedln_a20 ± 2 × 10⁻⁶20lockedunder 0.01 % of the tolerance usedln_a_se0.277489 ± 2.8 × 10⁻⁸0.277489lockedunder 0.01 % of the tolerance usedresidual_sd_ln_k0.0244949 ± 2.4 × 10⁻⁹0.0244949lockedunder 0.01 % of the tolerance usedk_pred_rel_se0.0141421 ± 1.4 × 10⁻⁹0.0141421lockedunder 0.01 % of the tolerance usedr20.999792 ± 10⁻⁹0.999792lockedunder 0.01 % of the tolerance usedmax_abs_residual_ln_k0.02 ± 2 × 10⁻⁹0.02lockedunder 0.01 % of the tolerance usedr0008closed form for the Eyring errors: the same construction on ln(k/T): se(dH) = R √(3) e/d, se(dS) = R √(6) e √(1/3 + xm²/(2 d²)), se(dG) at the mean = R T √(2) e (10⁻⁷, as above)passed
dh_kJ_per_mol74.8302 ± 7.5 × 10⁻⁶74.8302lockedunder 0.01 % of the tolerance useddh_se_kJ_per_mol0.720054 ± 7.2 × 10⁻⁸0.720054lockedunder 0.01 % of the tolerance usedds_J_per_molK-47.8911 ± 4.8 × 10⁻⁶-47.8911lockedunder 0.01 % of the tolerance usedds_se_J_per_molK2.30717 ± 2.3 × 10⁻⁷2.30717lockedunder 0.01 % of the tolerance useddg_se_kJ_per_mol0.0367451 ± 3.7 × 10⁻⁹0.0367451lockedunder 0.01 % of the tolerance useddg_kJ_per_mol89.7961 ± 9 × 10⁻⁶89.7961lockedunder 0.01 % of the tolerance usedr0009closed form, zero order: t90 = 0.1 C₀/k = 250000 s and t₁/2 = C₀/(2k) = 1.25 × 10⁶ s for k = 2 × 10⁻⁷ mol/(L s), C₀ = 0.5 mol/L (10⁻⁹)passed
shelf_life_s250000 ± 0.00025250000lockedunder 0.01 % of the tolerance usedhalf_life_s1.25 × 10⁶ ± 0.00131.25 × 10⁶lockedunder 0.01 % of the tolerance usedr0010closed form, second order: t90 = (1/0.9 - 1)/(k C₀) and t₁/2 = 1/(k C₀) = 10⁷ s for k = 2 × 10⁻⁷ L/(mol s), C₀ = 0.5 mol/L (10⁻⁹)passed
shelf_life_s1.11111 × 10⁶ ± 0.00111.11111 × 10⁶lockedunder 0.01 % of the tolerance usedhalf_life_s10⁷ ± 0.0110⁷lockedunder 0.01 % of the tolerance usedr0011closed form, first order with 80 % remaining: t80 = ln(1/0.8)/k and t₁/2 = ln 2/k for k = 2 × 10⁻⁷ /s, independent of C₀ (10⁻⁹)passed
shelf_life_s1.11572 × 10⁶ ± 0.00111.11572 × 10⁶lockedunder 0.01 % of the tolerance usedhalf_life_s3.46574 × 10⁶ ± 0.00353.46574 × 10⁶lockedunder 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 = κ (kB T/h) exp(-dG/RT). |
r2_min | 1 | 0.98 | The Arrhenius line is said to hold when R² 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 | R² 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 | R² 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 R² 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.