The original issue is https://bugs.ruby-lang.org/issues/3270 It can be optimized for the large argument by the following formula. ``` exp(a * b + c) = exp(a)**b * exp(c) ```