# How to exchange interpolating function results of NDSolve between different platforms?

For example, I have a interpolating function solution by NDSolve in a windows x64 platform and want to share the result to users in other windows x86.

I tried the DumpSave and ".mx" binary format, but failed since ".mx" is not platform independent binary format.

However, ".wdx", developed by Wolfram in 2007, which is said to be independent on platforms, does not work either. I just obtain the similar error message when trying to Get or Import, on x86 platform, the ".mx" or ".wdx" binary files created by Win64 platform with a failure:

File interpolatingFunctionData.wdx was written with ABI 64, which is not compatible with this version of the Wolfram Language.

It seems ".mat" does not support interpolating function Exporting.

Then how should I exchange interpolating function data between different platforms?

• How about Export[file.txt, Compress[interpolationObject]] Feb 23 '16 at 7:10
• thank you very much! I think this should work. Can you please answer it? Feb 23 '16 at 7:14

Export["file.txt", Compress[Interpolation[{1, 2, 3, 5, 8, 5}]]];