Skip to main content
9 events
when toggle format what by license comment
Jun 25, 2015 at 19:55 comment added Albert Retey @abrentonc: Mathematica is at its core a symbolic system, so it will evaluate a function for non-numeric arguments, e.g. f[x_]:=x^3;y=.;f[y]. If you call something like NDSolve which only handle those parameters as numeric input, then you have to restrict the function pattern to numeric parameters.
Jun 25, 2015 at 19:13 comment added abrentonc Fresh kernel didn't help
Jun 25, 2015 at 19:09 comment added Enrique Pérez Herrero Quit the Kernel and try again
Jun 25, 2015 at 19:08 comment added abrentonc I think I understand pattern matching. I'm just not sure I understand why the kernel would ever attempt to evaluate the expression with non-numerical arguments int the model[a_,t_] expression and why this results in the error that I mention.
Jun 25, 2015 at 19:06 history edited Enrique Pérez Herrero CC BY-SA 3.0
added 189 characters in body
Jun 25, 2015 at 18:57 comment added Enrique Pérez Herrero reference.wolfram.com/language/tutorial/…, The definition applies only when the variable has a numerical argument.
Jun 25, 2015 at 18:48 comment added abrentonc Why does the NonlinearModelFit seem to be running the function on non-numbers though?
Jun 25, 2015 at 18:00 review Low quality posts
Jun 25, 2015 at 18:12
Jun 25, 2015 at 17:40 history answered Enrique Pérez Herrero CC BY-SA 3.0