Skip to content

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); }
#endif
[[deprecated("2.6.0: Call `exp` on `q.numerical_value_in(one)` instead"),
  nodiscard]] constexpr quantity<R, Rep> exp(quantity<R, Rep> const& q);

Warning

Deprecated: 2.6.0: Call `exp` on `q.numerical_value_in(one)` instead. Use of this entity is allowed but discouraged.

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

NameDescription
qQuantity being the base of the operation