[#mp_units-pow-05] = xref:mp_units.adoc[mp_units]::pow :relfileprefix: ../ :mrdocs: Computes the value of a quantity raised to the `Num/Den` power == Synopsis Declared in `<mp‐units/math.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< intmax_t Num, intmax_t Den = 1, auto R, typename Rep> requires (Den != 0) && requires(Rep v) { representation_values<Rep>::one(); requires requires { pow(v, 1.0); } || requires { std::pow(v, 1.0); }; } [[nodiscard]] constexpr xref:mp_units/quantity-01.adoc[quantity<pow<Num, Den>(R), Rep>] pow(xref:mp_units/quantity-01.adoc[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 == Template Parameters [cols=2] |=== | Name | Description | *Num* | Exponent numerator | *Den* | Exponent denominator |=== == Parameters [cols=2] |=== | Name | Description | *q* | Quantity being the base of the operation |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#