added all functions to calculate A and r values of exponential regression