How to do exponential and logarithmic curve fitting in Python? I found only polynomial fitting
Asked 07 September, 2021
Viewed 2.6K times
  • 43
Votes

I have a set of data and I want to compare which line describes it best (polynomials of different orders, exponential or logarithmic).

I use Python and Numpy and for polynomial fitting there is a function polyfit(). But I found no such functions for exponential and logarithmic fitting.

Are there any? Or how to solve it otherwise?

7 Answer