[#mp_units-sqrt-0c] = xref:mp_units.adoc[mp_units]::sqrt :relfileprefix: ../ :mrdocs: `sqrt` overloads == Synopses Declared in `<mp‐units/framework/dimension.h>` Computes the square root of a dimension [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] consteval xref:mp_units/QuantitySpec.adoc[QuantitySpec] auto xref:mp_units/sqrt-09.adoc[sqrt](auto d); ---- [.small]#xref:mp_units/sqrt-09.adoc[_» more..._]# [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 * Dimension The result of computation * QuantitySpec The result of computation * Unit The result of computation * Quantity The result of computation == Parameters [cols=2] |=== | Name | Description | *d* | Dimension being the base of the operation | *q* | Quantity specification being the base of the operation | *u* | Unit being the base of the operation |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#