I have a command of the form J[b,c,n]
which outputs a list of complex numbers, obtained by using FindRoot
. Some outputs take over 4 hours to compute and once computed I would like to be able to save the values obtained so if I switch computers or open a new notebook I can get the values without spending time computing again. I would also like, as I compute the function for different parameters, this file of outputs to automatically update, so it really is producing a library of saved outputs. This could then be distributed with the relevant notebook of code so other people using it can save time if they want to compute something previously computed.
I am aware of questions regarding DumpSave
and ways to save outputs but I'm not sure if it can be used in the way I would like. Any pointers would be appreciated.
myList=
and after the list put;
. Further, I put this cell at the end of the notebook in which I work with this list, and in a separate Section, and transform the cell into the InitializationCell. Then I collapse the corresponding Section around its name. Done. Prior to beginning working with it I evaluate the Initialisation Cells. $\endgroup$J[0,0,2]
with the nameJ[0,0,2]
. $\endgroup$J[0, 0, 2] = {1, 2, 3}; J[2, 0, 0] = {3, 2, 1};'
. Just try. Finally, I propose that for the purpose of the example you invent a functionJ[b,c,n]
much simpler than your real one, but showing features important for your question, and a list of 3 values of parameters. With such an example we will be able to help you better. $\endgroup$