Computes the square root of a quantity

Synopsis

Declared in <mp‐units/math.h>

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

Description

Both the quantity value and its quantity specification are the base of the operation.

Return Value

Quantity The result of computation

Parameters

Name

Description

q

Quantity being the base of the operation

Created with MrDocs