Click or drag to resize

HyperbolicInverseLangevin Method

High-accuracy inverse Langevin function: starts from Kröger's rational approximation (max. relative error ~0.28%) and refines it with a fixed number of Newton-Raphson steps on the exact equation L(x) = y, where L is the true Langevin function (not an approximation). Each Newton step roughly doubles the number of correct digits, so starting from ~0.28% (about 2-3 correct digits), 3 steps reach full double precision (~15-16 digits) everywhere except in the immediate vicinity of y = +-1, where L'(x) -> 0 and the problem becomes ill-conditioned regardless of solver.

Namespace: Altaxo.Calc
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3618.0 (4.8.3618.0)
Syntax
C#
public static double InverseLangevin(
	double y,
	int newtonSteps = 3
)

Parameters

y  Double
Target value, must lie in (-1, 1).
newtonSteps  Int32  (Optional)
Number of Newton-Raphson refinement steps (default 3).

Return Value

Double

[Missing <returns> documentation for "M:Altaxo.Calc.Hyperbolic.InverseLangevin(System.Double,System.Int32)"]

See Also