numpy exponential and logarithmic functions