mp_units::sqrt

Computes the square root of a quantity

Synopses

Declared in <mp-units/math.h>
[[nodiscard]]
consteval
/* implementation-defined */
sqrt(reference);
» more...

Computes the square root of a quantity

template<
    auto R,
    typename Rep>
requires requires(Rep v) { sqrt(v); } || requires(Rep v) { std::sqrt(v); }
[[nodiscard]]
constexpr
quantity<sqrt(R), Rep>
sqrt(quantity<R, Rep> const& q) noexcept;
» more...

Return Value

Quantity The result of computation

Parameters

Name Description
q Quantity being the base of the operation