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); } || 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

Parameters

Name Description
q Quantity being the base of the operation

Created with MrDocs