Search code examples
curve-fitting

Curve Fitting - Suggestions please


Are there any good free programs for curve fitting out there? I have MATLAB and Mathematica, but I don't have MATLAB's extra toolkits. I want to fit a function of this form: (K*(c)^a)/x where K,c,a are constants and x is the variable.


Solution

  • Mathematica has a function called FindFit. You can perform a fit for a function as I described in the following way:

    data = Import["data.csv"];
    f1 = FindFit[data, (k*(0.4*^-3)^a)/x, {k, a}, x, NormFunction -> (Norm[#, 1] &)]