Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #7785 > unrolled thread

NDSolve output without interpolating function

Started bywilliam cuervo <wfcuervo@gmail.com>
First post2012-01-13 09:52 +0000
Last post2012-01-14 07:52 +0000
Articles 4 — 4 participants

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  NDSolve output without interpolating function william cuervo <wfcuervo@gmail.com> - 2012-01-13 09:52 +0000
    Re: NDSolve output without interpolating function "Oleksandr Rasputinov" <oleksandr_rasputinov@hmamail.com> - 2012-01-14 07:57 +0000
    Re: NDSolve output without interpolating function Szabolcs Horvát <szhorvat@gmail.com> - 2012-01-14 07:51 +0000
    Re: NDSolve output without interpolating function "Kevin J. McCann" <Kevin.McCann@umbc.edu> - 2012-01-14 07:52 +0000

#7785 — NDSolve output without interpolating function

Fromwilliam cuervo <wfcuervo@gmail.com>
Date2012-01-13 09:52 +0000
SubjectNDSolve output without interpolating function
Message-ID<jeout7$g44$1@smc.vnet.net>
Hi!

Is there any way that NDSolve presents the output as a set of data instead
of as an interpolating function?


Thanks!

[toc] | [next] | [standalone]


#7795

From"Oleksandr Rasputinov" <oleksandr_rasputinov@hmamail.com>
Date2012-01-14 07:57 +0000
Message-ID<jerch7$1b3$1@smc.vnet.net>
In reply to#7785
On Fri, 13 Jan 2012 09:52:39 -0000, william cuervo <wfcuervo@gmail.com>  
wrote:

> Hi!
>
> Is there any way that NDSolve presents the output as a set of data  
> instead
> of as an interpolating function?
>
>
> Thanks!

As far as I know, no. However, you can extract the values from the  
InterpolatingFunction using the (undocumented) forms:

ifun["Grid"]

to find the locations at which the values are sampled, and

ifun["ValuesOnGrid"]

to extract the values themselves.

These (as well as some other properties) are officially accessible via the  
DifferentialEquations`InterpolatingFunctionAnatomy` package, which just  
provides functions for calling the undocumented forms above.

[toc] | [prev] | [next] | [standalone]


#7810

FromSzabolcs Horvát <szhorvat@gmail.com>
Date2012-01-14 07:51 +0000
Message-ID<jerc6j$166$1@smc.vnet.net>
In reply to#7785
On 2012.01.13. 11:52, william cuervo wrote:
> Hi!
>
> Is there any way that NDSolve presents the output as a set of data instead
> of as an interpolating function?
>

For anything NDSolve-related, I recommend looking at this part of the docs:

http://reference.wolfram.com/mathematica/tutorial/NDSolveOverview.html

(This is literally book length!)

For your query about the points, see here:

http://reference.wolfram.com/mathematica/tutorial/NDSolvePackages.html

First load the DifferentialEquations`InterpolatingFunctionAnatomy` package.

Then InterpolatingFunctionCoordinates[ifun] will give you the list of 
coordinates.  You can then map ifun (the interpolating function) to this 
list to get the function values.

But note that an interpolating function has more than just this:  it 
also has the values of the derivatives, but just the function values itself.

Hope this helps.

-- 
Szabolcs Horvát
Mma QA site proposal: http://area51.stackexchange.com/proposals/37304

[toc] | [prev] | [next] | [standalone]


#7811

From"Kevin J. McCann" <Kevin.McCann@umbc.edu>
Date2012-01-14 07:52 +0000
Message-ID<jerc7i$16f$1@smc.vnet.net>
In reply to#7785
Bring up the Documentation (help) window, and drop this into it:

tutorial/NDSolvePackages

Scroll down a bit and check out InterpolatingFunctionCoordinates. I 
think it is what you want.

Kevin

On 1/13/2012 4:52 AM, william cuervo wrote:
> Hi!
>
> Is there any way that NDSolve presents the output as a set of data instead
> of as an interpolating function?
>
>
> Thanks!

[toc] | [prev] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web