My question is that if we can place the InterpolatingFunction object into a file so I can use it directly next time even if I have quit kernel? For instance, I solve this function numerically,
s = NDSolve[{y'[x] == y[x] Cos[x + y[x]], y[0] == 1}, y, {x, 0, 30}]
{{y->InterpolatingFunction[{{0.`,30.`}},"<>"]}}
Can I call the result of “y” without recompute differential equation? Of course I can export point value of y to some file and save it later. I am looking forward to a neater way to handle this .
The internal structure of InterpolatingFunction statements is not documented and may not be consistent between versions of Mathematica. That is, it not always possible to use an InterpolationFunction expression created in one version of Mathematica inside another version.