Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #7802 > unrolled thread
| Started by | Oliver Ruebenkoenig <ruebenko@wolfram.com> |
|---|---|
| First post | 2012-01-14 08:01 +0000 |
| Last post | 2012-01-17 08:37 +0000 |
| Articles | 5 — 5 participants |
Back to article view | Back to comp.soft-sys.math.mathematica
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: NDSolve output without interpolating function Oliver Ruebenkoenig <ruebenko@wolfram.com> - 2012-01-14 08:01 +0000
Re: NDSolve output without interpolating function "Nasser M. Abbasi" <nma@12000.org> - 2012-01-14 22:21 +0000
Re: NDSolve output without interpolating function "Oleksandr Rasputinov" <oleksandr_rasputinov@hmamail.com> - 2012-01-15 09:53 +0000
Re: NDSolve output without interpolating function "Kevin J. McCann" <kjm@KevinMcCann.com> - 2012-01-16 11:49 +0000
Re: NDSolve output without interpolating function DrMajorBob <btreat1@austin.rr.com> - 2012-01-17 08:37 +0000
| From | Oliver Ruebenkoenig <ruebenko@wolfram.com> |
|---|---|
| Date | 2012-01-14 08:01 +0000 |
| Subject | Re: NDSolve output without interpolating function |
| Message-ID | <jercor$1f0$1@smc.vnet.net> |
On Fri, 13 Jan 2012, 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!
>
Hi,
how about
s = y /. First@
NDSolve[{y'[x] == y[x] Cos[x + y[x]], y[0] == 1}, y, {x, 0, 30}]
s["ValuesOnGrid"]
s["Methods"]
Oliver
[toc] | [next] | [standalone]
| From | "Nasser M. Abbasi" <nma@12000.org> |
|---|---|
| Date | 2012-01-14 22:21 +0000 |
| Message-ID | <jesv5r$coh$1@smc.vnet.net> |
| In reply to | #7802 |
On 1/14/2012 2:01 AM, Oliver Ruebenkoenig wrote:
> On Fri, 13 Jan 2012, 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!
>>
>
> Hi,
>
> how about
>
> s = y /. First@
> NDSolve[{y'[x] == y[x] Cos[x + y[x]], y[0] == 1}, y, {x, 0, 30}]
>
> s["ValuesOnGrid"]
>
> s["Methods"]
>
> Oliver
>
Wow, that is amazing. Never knew about these. Any idea where to
read more about these options? to understand more what they return
and such.
Sounds like they will be very useful to know about. nothing in documentation
center on them.
thanks
--Nasser
[toc] | [prev] | [next] | [standalone]
| From | "Oleksandr Rasputinov" <oleksandr_rasputinov@hmamail.com> |
|---|---|
| Date | 2012-01-15 09:53 +0000 |
| Message-ID | <jeu7n8$j8h$1@smc.vnet.net> |
| In reply to | #7802 |
On Sat, 14 Jan 2012 22:21:47 -0000, Nasser M. Abbasi <nma@12000.org> wrote:
> On 1/14/2012 2:01 AM, Oliver Ruebenkoenig wrote:
>> On Fri, 13 Jan 2012, 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!
>>>
>>
>> Hi,
>>
>> how about
>>
>> s = y /. First@
>> NDSolve[{y'[x] == y[x] Cos[x + y[x]], y[0] == 1}, y, {x, 0, 30}]
>>
>> s["ValuesOnGrid"]
>>
>> s["Methods"]
>>
>> Oliver
>>
>
> Wow, that is amazing. Never knew about these. Any idea where to
> read more about these options? to understand more what they return
> and such.
>
> Sounds like they will be very useful to know about. nothing in
> documentation
> center on them.
>
> thanks
> --Nasser
>
These have a rather unusual form of documentation that works as follows:
s["MethodInformation"["ValuesOnGrid"]]
prints:
System`InterpolatingFunction`ValuesOnGrid
InterpolatingFunction[domain, data]@ValuesOnGrid[] gives the function
values at each grid point. In some cases, this may be faster than
evaluating at each of the grid points.
Attributes[System`InterpolatingFunction`ValuesOnGrid] = {Protected}
Options[System`InterpolatingFunction`ValuesOnGrid] = {DropPeriodicEndpoint
-> False}
(of course, you can substitute "ValuesOnGrid" for whatever Method you are
interested in.)
[toc] | [prev] | [next] | [standalone]
| From | "Kevin J. McCann" <kjm@KevinMcCann.com> |
|---|---|
| Date | 2012-01-16 11:49 +0000 |
| Message-ID | <jf12ri$5fh$1@smc.vnet.net> |
| In reply to | #7802 |
Oliver,
Wow! How did you find these? I always thought something like this should
be around, but resorted to rather tedious ways of getting at the data.
Thanks for putting this out. As far as I know, it is not in the
documentation.
Kevin
On 1/14/2012 3:01 AM, Oliver Ruebenkoenig wrote:
> On Fri, 13 Jan 2012, 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!
>>
>
> Hi,
>
> how about
>
> s = y /. First@
> NDSolve[{y'[x] == y[x] Cos[x + y[x]], y[0] == 1}, y, {x, 0, 30}]
>
> s["ValuesOnGrid"]
>
> s["Methods"]
>
> Oliver
>
[toc] | [prev] | [next] | [standalone]
| From | DrMajorBob <btreat1@austin.rr.com> |
|---|---|
| Date | 2012-01-17 08:37 +0000 |
| Message-ID | <jf3c0s$neq$1@smc.vnet.net> |
| In reply to | #7802 |
Documenting it would take ALL the fun out.
Bobby
On Mon, 16 Jan 2012 16:02:44 -0600, Kevin J. McCann <kjm@kevinmccann.com>
wrote:
> Oliver,
>
> Wow! How did you find these? I always thought something like this should
> be around, but resorted to rather tedious ways of getting at the data.
>
> Thanks for putting this out. As far as I know, it is not in the
> documentation.
>
> Kevin
>
> On 1/14/2012 3:01 AM, Oliver Ruebenkoenig wrote:
>> On Fri, 13 Jan 2012, 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!
>>>
>>
>> Hi,
>>
>> how about
>>
>> s = y /. First@
>> NDSolve[{y'[x] == y[x] Cos[x + y[x]], y[0] == 1}, y, {x, 0, 30}]
>>
>> s["ValuesOnGrid"]
>>
>> s["Methods"]
>>
>> Oliver
>>
>
--
DrMajorBob@yahoo.com
[toc] | [prev] | [standalone]
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web