Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Efficient way to store InterpolatingFunction' topicStudent Support Forum > General > Archives > "Efficient way to store InterpolatingFunction"

< Previous CommentHelp | Reply To Comment | Reply To Topic
Author Comment/Response
Bill Simpson
07/30/12 12:09pm

We have no idea how you are actually doing your DumpSave or bringing the result back.

Perhaps this example will help.

In[1]:= sol=NDSolve[{y'[x]==y[x],y[1]==2},y,{x,0,3}]
Out[1]= {{y->InterpolatingFunction[{{0.,3.}},<>]}}
In[2]:= DumpSave["nds.mx",sol]
Out[2]= {{{y->InterpolatingFunction[{{0.,3.}},<>]}}}

Exit Mathematica
Start Mathematica

In[1]:= <<nds.mx
In[2]:= sol
Out[2]= {{y->InterpolatingFunction[{{0.,3.}},<>]}}
In[3]:= y[1]/.sol
Out[3]= {2.}
In[4]:=Plot[y[t]/.sol, {t,0,3}]
Out[4]= <<<graphic snipped>>

URL: ,

Subject (listing for 'Efficient way to store InterpolatingFunction')
Author Date Posted
Efficient way to store InterpolatingFunction fpghost 07/28/12 03:51am
Re: Efficient way to store InterpolatingFunction Bill Simpson 07/30/12 12:09pm
< Previous CommentHelp | Reply To Comment | Reply To Topic