Linked Questions

1
vote
1answer
47 views

Printing data into a file inside the loop one by one [duplicate]

Suppose I have a simple loop dat=Table["i",{i,1,10}]; Now once the run is finished, I can store the data using ...
0
votes
0answers
46 views

Save the data in mathematica [duplicate]

I have been calculated some expansions with NIntegrate and NDSolve in Mathematica and I have a lot of them. Because the calculation of these results takes hours, I want to save it in a file of ...
0
votes
0answers
43 views

Saving remembered function when closing down notebook [duplicate]

I have functions defined to remember their values f[x_]:=f[x] I would like to be able to close a notebook without losing the computed values, what is the ...
0
votes
1answer
40 views

All definitions are cleared when I reopen my file [duplicate]

I just started getting into mathematica and have the problem that whenever I save and reopen my .nb file, all functions and variables are cleared and I need to shift+enter every cell again to continue ...
1
vote
0answers
35 views

Creating a library of saved function values [duplicate]

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 ...
52
votes
4answers
6k views

Saving Mathematica kernel state?

If I save a notebook, I only save what I see. That is, if I close Mathematica and reopen the notebook later, all previous calculations are lost, except for those things I've output. Now I know that ...
11
votes
2answers
282 views

Saving memoization to disk

I like using memoization (i.e. the construct myFunction[x_]:=myFunction[x]=...) when I have a heavy function that I need to re-evaluate on the same arguments. ...
12
votes
1answer
142 views

How to implement a resumable Table?

Motivation (my sob stories) Too many times I've run a notebook for hours and then Mathematica crashes (FE or Kernel, mostly FE) and things are lost. I've made various attempts at custom solutions ...
2
votes
1answer
132 views

How to speed up the calculation of a multi-dimension matrix involving symbolic integral?

The following program succeeds in getting matrix CC, but it takes time badly, especially in the case varNumber becomes larger just as the following ...
1
vote
2answers
119 views

Save part of memoized function

I have a function whose performing a series of expansions of a complicated function, which can take a lot of time. To avoid bottlenecks, I use memoization so I need to evaluate it only once. For ...
1
vote
1answer
140 views

Cache a function in mathematica

I have a function of one variable $f(x): \mathbb{R}\to \mathbb{C}$ which is very difficult to evaluate. Single evaluations may take hours, and I need to use the function at a large variety of points. ...