From 6ed81c13a09e0e9891befb70b4c28bb791d8228f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johanna=20S=C3=B6rng=C3=A5rd?= Date: Mon, 29 Jul 2024 10:56:01 +0200 Subject: [PATCH] Add implementation note --- README.md | 1 + src/lib.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/README.md b/README.md index 82930f1..9f568e1 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,7 @@ Fast evaluation of the real valued parts of the principal and secondary branches of the [Lambert W function](https://en.wikipedia.org/wiki/Lambert_W_function) using the [method of Toshio Fukushima](https://www.researchgate.net/publication/346309410_Precise_and_fast_computation_of_Lambert_W_function_by_piecewise_minimax_rational_function_approximation_with_variable_transformation) to either 24 or 50 bits of accuracy. This method uses a piecewise minimax rational function approximation with variable transformations. +It is implemented in code as conditional switches on the input value followed by either a square root or a logarithm and finished by a series of cumulative multiplies by fixed constants. ## Examples diff --git a/src/lib.rs b/src/lib.rs index 120ed67..7743148 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -3,6 +3,7 @@ //! Fast evaluation of the real valued parts of the principal and secondary branches of the [Lambert W function](https://en.wikipedia.org/wiki/Lambert_W_function) using the [method of Toshio Fukushima](https://www.researchgate.net/publication/346309410_Precise_and_fast_computation_of_Lambert_W_function_by_piecewise_minimax_rational_function_approximation_with_variable_transformation) to either 24 or 50 bits of accuracy. //! //! This method uses a piecewise minimax rational function approximation with variable transformations. +//! It is implemented in code as conditional switches on the input value followed by either a square root or a logarithm and finished by a series of cumulative multiplies by fixed constants. //! //! ## Examples //!