mp_units::exp¶
Computes Euler's raised to the given power
Synopsis¶
Declared in <mp-units/math.h>
template<ReferenceOf<dimensionless> auto R, typename Rep>
requires requires(Rep v) { exp(v); }
#if MP_UNITS_HOSTED
|| requires(Rep v) { std::exp(v); }
[[nodiscard]] constexpr quantity<R, Rep> exp(quantity<R, Rep> const& q);
Description¶
NOTE
Such an operation has sense only for a dimensionless quantity.
Return Value¶
Quantity The value of the same quantity type
Note
The return value should not be discarded.
Parameters¶
| Name | Description |
|---|---|
| q | Quantity being the base of the operation |