pow
overloads
Synopses
Declared in <mp‐units/framework/dimension.h>
Computes the value of a reference raised to the Num/Den
power
Computes the value of a dimension raised to the Num/Den
power
Computes the value of a quantity raised to the Num/Den
power
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
quantity<pow<Num, Den>®, Rep>
pow(quantity<R, Rep> const& q) noexcept;
Return Value
-
The result of computation
-
Dimension The result of computation
-
QuantitySpec The result of computation
-
Unit The result of computation
-
Quantity The result of computation
Template Parameters
Name |
Description |
Num |
Exponent numerator |
Den |
Exponent denominator |
Parameters
Name |
Description |
r |
Reference being the base of the operation |
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 |
Created with MrDocs