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


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

Re: AbsoluteOptions and NDSolve

Started byBob Hanlon <hanlonr357@gmail.com>
First post2011-12-27 10:39 +0000
Last post2011-12-27 10:39 +0000
Articles 1 — 1 participant

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.


Contents

  Re: AbsoluteOptions and NDSolve Bob Hanlon <hanlonr357@gmail.com> - 2011-12-27 10:39 +0000

#7447 — Re: AbsoluteOptions and NDSolve

FromBob Hanlon <hanlonr357@gmail.com>
Date2011-12-27 10:39 +0000
SubjectRe: AbsoluteOptions and NDSolve
Message-ID<jdc784$q1m$1@smc.vnet.net>
The output of NDSolve does not have options. Use StepMonitor

xList = Reap[nds = NDSolve[
       {y'[x] == y[x] Cos[x + y[x]], y[0] == 1},
       y, {x, 0, 30}, StepMonitor :> Sow[x]][[1]]][[2, 1]];

steps=Differences[xList];

Take[steps,10]

{0.00017069, 0.00034138, 0.00034138, 0.00034138, 0.0034138, \
0.0034138, 0.0034138, 0.0034138, 0.0227572, 0.0227572}


Bob Hanlon

On Mon, Dec 26, 2011 at 5:30 PM, Snark <gadior@gmail.com> wrote:
> Hi,
>
> I am perplexed by the behavior of AbsoluteOptions on NDSolve. I tried
> getting the actual value of StartingStepSize and got something weird.
>
> In[]:= AbsoluteOptions[NDSolve[eqSys, {c[x, t], T[x, t]}, {x, 0, xb},
> {t, 0,1}]],StartingStepSize]
> Out[]:= {{AbsoluteOptions[c[x,t]->InterpolatingFunction[{{0.,5.*10^-6},
> {0.,1.}},<>][x,t],StartingStepSize],AbsoluteOptions[T[x,t]-
>>InterpolatingFunction[{{0.,5.*10^-6},{0.,1.}},<>]
> [x,t],StartingStepSize]}}
>
> Isn't there a way to fetch absolute options from NDSolve?
>
> Thanks in advance
>
>



-- 
Bob Hanlon

[toc] | [standalone]


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


csiph-web