Mathematica Table function

后端 未结 3 767
臣服心动
臣服心动 2020-12-31 10:38

I\'m running a Table function which will take too much time to complete.

I wanted to know if there\'s a way to retrieve the results computed so far.

3条回答
  •  情深已故
    2020-12-31 10:59

    Another solution is to export results of intermediate computations to a running log file as described in this answer by WReach (see the "File-backed In-memory Approach" section). With this you will newer loose results of intermediate computations and will always be able to investigate what is computed so far.

    P.S. I think usage of Monitor as suggested in this recent Mathematica tip on twitter is also useful in such cases:

    Monitor[Table[Integrate[1/(x^n + 1), x], {n, 20}], 
     ProgressIndicator[n, {1, 20}]]
    

提交回复
热议问题