determining the inverse of exponential