How do I store the results of a long symbolic calculation for later use?

前端 未结 1 1750
没有蜡笔的小新
没有蜡笔的小新 2021-02-06 14:20

My calculations are something like this:

f[x_]:= (*runs fast*)
g[x_]:=(*runs fast*)
h[x_]=depends on f[x],g[x] (*runs slow ~5mins*)

Now I need

1条回答
  •  醉梦人生
    2021-02-06 15:09

    Try Save

    Use like:

    Save["h-defs.m", h]
    

    And load with Get:

    << "h-defs.m"
    

    0 讨论(0)
提交回复
热议问题