Computes the exponential function.