Calculate Exponential and Logarithm to Any Base