Can someone please tell me why this expression returns error messages about division by zero.
NnLnMdlFt =
NonlinearModelFit[
dtptsC, (100.0*((Subscript[k, 1]*Subscript[N, o])/(Subscript[k, 2] -
Subscript[k,
1])*((E^-(Subscript[k, 1]*t)) - (E^-(Subscript[k, 2]*
t))))), {Subscript[N, 0], Subscript[k, 1], Subscript[k,
2]}, t]
Edit
Thanks for your suggestions. First off, here are my data points:
dtptsC = {{1.0, 1.0}, {5.0, 80.0}, {10.0, 80.0}, {20.0, 63.0}, {30.0,
50.0}, {40.0, 38.0}, {60.0, 24.0}, {75.0, 16.0}, {95.0, 10.0}};
And here is the corrected version of my equation which still returns error messages about division by zero:
NnLnMdlFt =
NonlinearModelFit[
dtptsC, (100.0*((j*m)/(k - j)*((E^-(j*t)) - (E^-(k*t))))), {m, j,
k}, t]
dtptsC
I don't see how we can help. Also, it's worth noting that you shouldn't use capitalN
as a variable name, as it is a function in Mathematica. $\endgroup$Subscript
ed variables is discouraged. $\endgroup$