0
$\begingroup$

Consider a table having rows {a, b, f[a,b,t]}, where a,b are parameters while f is a function of t (being the numeric solution of some differential equation). Is it possible to export such a table in the external file?

$\endgroup$
  • $\begingroup$ Have you tried Export? $\endgroup$ – John Doty Jan 12 at 23:19
  • $\begingroup$ @JohnDoty : in which format should I export the function f? I would not like to export is as a table. $\endgroup$ – John Taylor Jan 12 at 23:20
  • $\begingroup$ What are going to do with the exported table? Do you expect it to be readable by some other app? It us not likely that any other app will be able to use the Wolfram Language interpolation functions you want to export. $\endgroup$ – m_goldberg Jan 12 at 23:41
  • 1
    $\begingroup$ In that case, you don't need Export. Write it out with Put and read it in with Get. $\endgroup$ – m_goldberg Jan 12 at 23:45
  • 1
    $\begingroup$ Strongly urge you to read this tutorial. In particular look at Save $\endgroup$ – m_goldberg Jan 13 at 0:24
1
$\begingroup$

Why do you want to export it?

  • If you want to read the data back to Mathematica later, you can Export to the MX format (fast but less compatible between versions) or the WDX format (more compatible).

  • If you want to transfer the data to another system, use whatever format that system can read. For complex data that can't easily be represented as a simple table, JSON is often convenient.

    Look up the RawJSON export format in Mathematica's documentation. It uses Associations instead of Rules, which is often more convenient.

$\endgroup$

Not the answer you're looking for? Browse other questions tagged or ask your own question.