I'm inspired to make use of "remembering the function values" technique from here: Functions that remember their values
The only question is: how can I save the function, along with its values stored as well, into some kind of file, so that next time when I load the file, i.e., the function into Mathematica, I can access all the values I stored last time.
DumpSave
is for. Note however thatDumpSave
creates a.mx
file, which to my understanding is a file format that isn't very cross-platform (and maybe even cross-version) compatible. $\endgroup$Save
also will work. All this is described in my own answer (2008) for which I would consider this question "already has an answer" (i.e. duplicate) but I do not wish to vote alone. $\endgroup$