using constexpr to calculate exponentials