Trait LambertW

Source
pub trait LambertW {
    type Output;

    // Required methods
    fn lambert_w0(self) -> Self::Output;
    fn lambert_wm1(self) -> Self::Output;
}
๐Ÿ‘ŽDeprecated since 1.1.0: use the functions directly or create your own trait, the lambert_w crate is not the place for making such API decisions for others.
Expand description

Enables evaluation of the principal and secondary branches of the Lambert W function on the types that implement this trait.

Required Associated Typesยง

Source

type Output

๐Ÿ‘ŽDeprecated since 1.1.0: use the functions directly or create your own trait, the lambert_w crate is not the place for making such API decisions for others.

The type returned by the Lambert W functions when acting on a value of type Self.

Required Methodsยง

Source

fn lambert_w0(self) -> Self::Output

๐Ÿ‘ŽDeprecated since 1.1.0: use the functions directly or create your own trait, the lambert_w crate is not the place for making such API decisions for others.

The principal branch of the Lambert W function.

Source

fn lambert_wm1(self) -> Self::Output

๐Ÿ‘ŽDeprecated since 1.1.0: use the functions directly or create your own trait, the lambert_w crate is not the place for making such API decisions for others.

The secondary branch of the Lambert W function.

Implementations on Foreign Typesยง

Sourceยง

impl LambertW for f32

Sourceยง

fn lambert_w0(self) -> Self::Output

๐Ÿ‘ŽDeprecated since 1.1.0: use the functions directly or create your own trait, the lambert_w crate is not the place for making such API decisions for others.

The principal branch of the Lambert W function.

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.

Delegates to the lambert_w0f function.

Sourceยง

fn lambert_wm1(self) -> Self::Output

๐Ÿ‘ŽDeprecated since 1.1.0: use the functions directly or create your own trait, the lambert_w crate is not the place for making such API decisions for others.

The secondary branch of the Lambert W function.

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.

Delegates to the lambert_wm1f function.

Sourceยง

type Output = f32

๐Ÿ‘ŽDeprecated since 1.1.0: use the functions directly or create your own trait, the lambert_w crate is not the place for making such API decisions for others.
Sourceยง

impl LambertW for f64

Sourceยง

fn lambert_w0(self) -> Self::Output

๐Ÿ‘ŽDeprecated since 1.1.0: use the functions directly or create your own trait, the lambert_w crate is not the place for making such API decisions for others.

The principal branch of the Lambert W function evaluated to 50 bits of accuracy.

Arguments smaller than -1/e (โ‰ˆ -0.36787944117144233) result in NAN.

Delegates to the lambert_w0 function.

Sourceยง

fn lambert_wm1(self) -> Self::Output

๐Ÿ‘ŽDeprecated since 1.1.0: use the functions directly or create your own trait, the lambert_w crate is not the place for making such API decisions for others.

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.

Delegates to the lambert_wm1 function.

Sourceยง

type Output = f64

๐Ÿ‘ŽDeprecated since 1.1.0: use the functions directly or create your own trait, the lambert_w crate is not the place for making such API decisions for others.

Implementorsยง