Function hydra_dx_math::transcendental::ln
source · pub fn ln<S, D>(operand: S) -> Result<(D, bool), ()>where
S: FixedUnsigned,
D: FixedUnsigned + From<S> + One,
D::Bits: Copy + ToFixed + AddAssign + BitOrAssign + ShlAssign,
S::Bits: Copy + ToFixed + AddAssign + BitOrAssign + ShrAssign + Shr,
Expand description
natural logarithm Returns tuple(D,bool) where bool indicates whether D is negative. This happens when operand is < 1.