Whenever I try to use FindFit
or NonlinearModelFit
for the data (shown below), I keep getting the following error thrown at me:
RecursionLimit::reclim: Recursion depth of 1024 exceeded.
I am using an exponential model to try and fit it.
data = {0.19676778483499557`, 0.20885602228466532`, 0.22210833221738427`,
0.23668665287868895`, 0.252783561788831`, 0.2706298263857738`,
0.2905043053747535`, 0.3127471056565888`, 0.3377773233068993`,
0.3661173611964135`, 0.39842687921844677`, 0.43555118981628316`,
0.4785919073537348`, 0.5290129571413393`, 0.5888048389535786`,
0.6607490640587161`};
The particular model that I'm using is FindFit[data, Exp[a*x] + b, {a, b}, x]
How can I stop getting this error thrown at me/get the model I'm trying to use to work?
?a
and?b
to see if there are any lingering definitions. $\endgroup$a
andb
. Check them with?a
and?b
. $\endgroup$