Gradient of exponential functions (#52)