Skip to content

mp_units::utility::log2

Binary (base-2) logarithm of an uncertain value

Synopsis

Declared in <mp-units/utility/uncertain.h>

[[nodiscard]] constexpr uncertain log2(uncertain const& arg)
  requires requires { log2(arg.value()); } || requires { std::log2(arg.value()); };

Note

This function is a hidden friend of uncertain, declared only inside that class: it can be found only through argument-dependent lookup.

Description

NOTE

Formula: σf = |σx / (x × ln(2))|

Return Value

Note

The return value should not be discarded.