My code is
data = {{0, 0.00355}, {6, 0.00343}, {9, 0.00331}, {48, 0.00319}, {173, 0.00308}, {200, 0.00308}};
fun= FindFit[data, a*Exp[b*(x)] + c, {a, b, c}, x]
p[x_] := a*Exp[b*x] /. fun
This gives me {a -> -3.2091*10^-91, b -> 1., c -> 0.003312}
whereas when I use desmos it gives me:
where a=0.000437, b=-0.0598, and c=0.00310.
Desmos also gives the same answer as when I put it into wolfram alpha. I just want to know why my mathematica doesn't give me the same result and how I can make it give me the same as desmos. I have a lot of other data I would like to process in the same way and doing it all in desmos would be too painful.
FindFit[data, a*Exp[b*(x)] + c, {a, {b, -1}, c}, x]
. $\endgroup$NonlinearModelFit[data, a Exp[b x] + c, {a, b, c}, x, Method -> {NMinimize, Method -> "DifferentialEvolution"}, MaxIterations -> 1000]
$\endgroup$