开发者

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

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 only the results of h[x] and every time I restart mma, I essentially redo the same calculations to get h[x], when it could have been stored. Is there some way I can save the symbolic results, and just import it anyt开发者_JAVA百科ime I need it?


Try Save

Use like:

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

And load with Get:

<< "h-defs.m"
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜