Skip to content

mp_units::utility::cbrt

Cube root of an uncertain value

Synopsis

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

[[nodiscard]] constexpr uncertain cbrt(uncertain const& arg)
  requires requires { cbrt(arg.value()); } || requires { std::cbrt(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: if f = ∛x, then σf = σx / (3 × f²)

Return Value

Note

The return value should not be discarded.