pub trait LambertW {
type Output;
// Required methods
fn lambert_w0(self) -> Self::Output;
fn lambert_wm1(self) -> Self::Output;
}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ยง
Required Methodsยง
Sourcefn 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.
fn lambert_w0(self) -> Self::Output
lambert_w crate is not the place for making such API decisions for others.The principal branch of the Lambert W function.
Sourcefn 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.
fn lambert_wm1(self) -> Self::Output
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
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.
fn lambert_w0(self) -> Self::Output
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.
fn lambert_wm1(self) -> Self::Output
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ยงimpl LambertW for f64
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.
fn lambert_w0(self) -> Self::Output
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.
fn lambert_wm1(self) -> Self::Output
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.