[#mp_units-sqrt-0c] = xref:mp_units.adoc[mp_units]::sqrt :relfileprefix: ../ :mrdocs: Computes the square root of a quantity == Synopses Declared in `<mp‐units/math.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] consteval /* implementation-defined */ xref:mp_units/sqrt-0f.adoc[sqrt](xref:mp_units/reference.adoc[reference]); ---- [.small]#xref:mp_units/sqrt-0f.adoc[_» more..._]# Computes the square root of a quantity [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< auto R, typename Rep> requires requires(Rep v) { sqrt(v); } || requires(Rep v) { std::sqrt(v); } [[nodiscard]] constexpr xref:mp_units/quantity-01.adoc[quantity<sqrt(R), Rep>] xref:mp_units/sqrt-0b.adoc[sqrt](xref:mp_units/quantity-01.adoc[quantity<R, Rep>] const& q) noexcept; ---- [.small]#xref:mp_units/sqrt-0b.adoc[_» more..._]# == Return Value Quantity The result of computation == Parameters [cols="1,4"] |=== |Name|Description | *q* | Quantity being the base of the operation |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#