calamari.sample.curie_constant_from_inverse_slope#

calamari.sample.curie_constant_from_inverse_slope(slope)#

Curie constant C from a straight-line fit to 1/chi vs T.

The standard Curie-Weiss analysis plots inverse susceptibility against temperature, because chi = C/(T - theta) rearranges to the straight line 1/chi = (T - theta)/C. That line has slope ``1/C``, so:

C = 1 / slope

and its x-intercept is theta.

Parameters:

slope (float) – Slope of 1/chi against T, in the reciprocal units of whatever chi was fitted, e.g. Oe mol / (emu K) for a molar susceptibility in emu/(Oe mol).

Return type:

float

Returns:

float – Curie constant C, on the same mole basis as the fitted susceptibility, ready for mu_eff_from_curie_constant().

Raises:

ValueError – If slope is zero or non-finite – a flat or degenerate fit carries no Curie constant, and silently returning inf would propagate into mu_eff as a plausible-looking number.

Examples

>>> C = curie_constant_from_inverse_slope(0.22818)
>>> round(float(mu_eff_from_curie_constant(C)), 2)
5.92