SMS: Exponential and logarithmic functions