Skip to content

Commit

Permalink
Add comment about trait impl domain domain
Browse files Browse the repository at this point in the history
  • Loading branch information
JSorngard committed Oct 5, 2024
1 parent 5621260 commit 9a2c444
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,8 @@ impl LambertW for f32 {
///
/// Evaluated with the approximation with 24-bits of accuracy from the paper, but on 32-bit floats.
///
/// Arguments smaller than -1/e (≈ -0.36787944) result in [`NAN`](f32::NAN).
///
/// Delegates to the [`lambert_w0f`] function.
///
/// # Example
Expand All @@ -406,6 +408,8 @@ impl LambertW for f32 {
///
/// Evaluated with the approximation with 24-bits of accuracy from the paper, but on 32-bit floats.
///
/// Arguments smaller than -1/e (≈ -0.36787944) or larger than 0 result in [`NAN`](f32::NAN).
///
/// Delegates to the [`lambert_wm1f`] function.
///
/// # Example
Expand All @@ -427,6 +431,8 @@ impl LambertW for f64 {
type Output = Self;
/// The principal branch of the Lambert W function evaluated to 50 bits of accuracy.
///
/// Arguments smaller than -1/e (≈ -0.36787944117144233) result in [`NAN`](f64::NAN).
///
/// Delegates to the [`lambert_w0`] function.
///
/// # Example
Expand All @@ -446,6 +452,8 @@ impl LambertW for f64 {
}
/// The secondary branch of the Lambert W function evaluated to 50 bits of accuracy.
///
/// Arguments smaller than -1/e (≈ -0.36787944117144233) or larger than 0 result in [`NAN`](f64::NAN).
///
/// Delegates to the [`lambert_wm1`] function.
///
/// # Example
Expand Down

0 comments on commit 9a2c444

Please sign in to comment.