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.
DumpSaveis for. Note however thatDumpSavecreates a.mxfile, which to my understanding is a file format that isn't very cross-platform (and maybe even cross-version) compatible. – march Aug 08 '16 at 23:00Savealso 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. – Mr.Wizard Aug 09 '16 at 00:01