Expand description
LogBase10Of1PlusX and
LogBase10Of1PlusXAssign,
traits for computing $\log_{10}(1+x)$ of Floats.
Functions§
- primitive_
float_ log_ base_ 10_ 1_ plus_ x - Computes $\log_{10}(1+x)$, the base-10 logarithm of one plus a primitive float. Using this
function is more accurate than computing
(1 + x).log10(), both because $1+x$ may not be representable as a primitive float and because the standard library’slog10is not always correctly rounded.