MathGroup Archive 1996

[Date Index] [Thread Index] [Author Index]

Search the Archive

Is there a bug in FIT?


I am trying to fit some data and have discovered that the
FIT function does'nt work with the following data:

data1 = {{1.42 10^13, -1.26}, {1.5 10^13, -1.3}, {1.63 10^13, -1.37}};

When I do:

funcdata1 = Fit[data1,{1,x},x];

Show[{Plot[data1,{x,1.42 10^13,1.63 10^13}],ListPlot[data1]},
Prolog->AbsolutePointSize[16]]

I get terrible results, but when I take the exponents out:

data2 = {{1.42, -1.26}, {1.5, -1.3}, {1.63, -1.37}};

an I do:

funcdata2 = Fit[data2,{1,x},x];

Show[{Plot[data2,{x,1.42,1.63}],ListPlot[data2]},
Prolog->AbsolutePointSize[16]]

It fits it just fine.  What is wrong?


==== [MESSAGE SEPARATOR] ====


  • Prev by Date: Re: Abort options in Windows
  • Next by Date: NDSolve
  • Previous by thread: Re: hiding definitions
  • Next by thread: Re: Is there a bug in FIT?