Taylor expansion for the exponential function