Skip to content

mp_units::utility::operator/

Division of two uncertain values

Synopsis

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

[[nodiscard]] constexpr uncertain operator/(uncertain const& lhs, uncertain const& rhs);

Description

NOTE

Assumes independent values. Formula: σf² = (σx/y)² + (x·σ_y/y²)²

NOTE

The absolute form is used for the same reason as in operator*: it stays well-defined for a zero numerator.

Return Value

Note

The return value should not be discarded.

Parameters

NameDescription
lhsThe left operand
rhsThe right operand