mp_units::utility::log¶
Natural logarithm of an uncertain value
Synopsis¶
Declared in <mp-units/utility/uncertain.h>
[[nodiscard]] constexpr uncertain log(uncertain const& arg)
requires requires { log(arg.value()); } || requires { std::log(arg.value()); };
Description¶
NOTE
Formula: if f = ln(x), then σf = |σx / x| = σ_x / x (for positive x)
NOTE
Relative uncertainty in x becomes absolute uncertainty in ln(x).
Return Value¶
Note
The return value should not be discarded.