# inverse_langevin

### pylimer_tools_cpp.inverse_langevin(x: [SupportsFloat](https://docs.python.org/3/library/typing.html#typing.SupportsFloat)) → [float](https://docs.python.org/3/builtins/functions.html#float)

A somewhat accurate (for $x \in (-1, 1)$) implementation of the inverse Langevin function.

Source: [https://scicomp.stackexchange.com/a/30251](https://scicomp.stackexchange.com/a/30251)

* **Parameters:**
  **x** – Input value in the range (-1, 1)
* **Returns:**
  Inverse Langevin function value
