Re: How to get data from solvin' numerically differential equation?
- To: mathgroup at smc.vnet.net
- Subject: [mg104152] Re: How to get data from solvin' numerically differential equation?
- From: Hannes Kessler <HannesKessler at hushmail.com>
- Date: Wed, 21 Oct 2009 06:30:05 -0400 (EDT)
- References: <hbjtk9$5ta$1@smc.vnet.net>
Hello Mikhail,
here is an example how you can get the data of an interpolating
function in list form:
solution = NDSolve[{x'[t] + x[t] == 0, x[0] == 1}, x, {t, 0, 3}]
function = x /. First[solution]
data = List @@ function
Best regards,
Hannes Kessler
On 20 Okt., 10:50, =D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB =D0=A8=D0=B0=D0=BB=
=D0=B0=D0=B3=D0=B8=D0=BD=D0=BE=D0=B2 <shal... at gmail.com> wrote:
> Hi,
> Mathematica solves numerically differential equation and makes
> interpolation. I can plot this interpolating function. Can I save all
> the points in a file or somehow get this data?
> Best regards, Mikhail Shalaginov.