calamari.sample.curie_constant_from_inverse_slope#
- calamari.sample.curie_constant_from_inverse_slope(slope)#
Curie constant
Cfrom a straight-line fit to1/chivsT.The standard Curie-Weiss analysis plots inverse susceptibility against temperature, because
chi = C/(T - theta)rearranges to the straight line1/chi = (T - theta)/C. That line has slope ``1/C``, so:C = 1 / slope
and its x-intercept is
theta.- Parameters:
slope (
float) – Slope of1/chiagainstT, in the reciprocal units of whateverchiwas fitted, e.g. Oe mol / (emu K) for a molar susceptibility in emu/(Oe mol).- Return type:
- Returns:
float– Curie constantC, on the same mole basis as the fitted susceptibility, ready formu_eff_from_curie_constant().- Raises:
ValueError – If
slopeis zero or non-finite – a flat or degenerate fit carries no Curie constant, and silently returninginfwould propagate intomu_effas a plausible-looking number.
Examples
>>> C = curie_constant_from_inverse_slope(0.22818) >>> round(float(mu_eff_from_curie_constant(C)), 2) 5.92