About 3,450,000 results
Open links in new tab
  1. numpy - How to do exponential and logarithmic curve fitting in Python ...

    Aug 8, 2010 · 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 …

  2. Rank the functions in increasing order of growth - Stack Overflow

    Jan 27, 2023 · F3 (n) - Logarithmic functions grow slower than polynomial functions, and in general, exponential functions with larger bases grow faster than those with smaller bases.

  3. How to write a simple logarithm function without math.h?

    Apr 11, 2023 · Yes, fairly simple, but as a challenge, I want to not use the log() functions themselves though I'm still relying on <math.h> 's functions. Question: What's a simple form of making a …

  4. python - Plotting the logarithm of a function - Stack Overflow

    Aug 23, 2023 · Is your problem calculating the logarithm base 10 or plotting the values? If the latter, how is that different from plotting anything else? Also, your f(x,a) is a function of two values. Do you want …

  5. Can I make a logarithmic regression on sklearn? - Stack Overflow

    Sep 23, 2017 · I have search a lot and can't find that, only linear regression, polynomial regression, but no logarithmic regression on sklearn. I need to plot the curve and then make predictions with that …

  6. Why the cost function of logistic regression has a logarithmic expression?

    Oct 7, 2015 · My question is what is the base of putting the logarithmic expression for cost function .Where does it come from? i believe you can't just put "-log" out of nowhere.

  7. math - Calculate logarithm in Python - Stack Overflow

    Nov 17, 2015 · From the documentation: With one argument, return the natural logarithm of x (to base e). With two arguments, return the logarithm of x to the given base, calculated as log(x)/log(base). …

  8. algorithm - Big-O Notation regarding logarithms - Stack Overflow

    Sep 12, 2012 · I got asked an interview question that wanted me to discern the Big-O notation of several logarithmic functions. The functions were as follows: f(x) = log5(x) f(x) = log(x5) f(x) = log(6*log x) ...

  9. big o - Order the growth rate of a function - Stack Overflow

    Apr 2, 2014 · 2 logarithmic (exp n=1/c) 3 linear (exp n^1) 4 polinomial (exp n^c) 5 exponential (exp c^n) 6 factorial (exp n!) that's the basic rule. On the long run each one "wins" against the lower ones (e.g. …

  10. Python using curve_fit to fit a logarithmic function

    Jan 18, 2020 · The X data values sometimes need to be shifted a bit for this equation, and when I tried this it worked rather well. Here is a graphical Python fitter using your data and an X-shifted equation …