Re: InterpolatingFunction
- To: mathgroup at smc.vnet.net
- Subject: [mg16423] Re: InterpolatingFunction
- From: "Kevin J. McCann" <kevinmccann at Home.com>
- Date: Sat, 13 Mar 1999 02:21:40 -0500
- Organization: @Home Network
- References: <7c5ait$7pr@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Check out the following:
sol=NDSolve[{y''[t] + y[t] == 0,y[0]==0,y'[0]==1},y,{t,0,4\[Pi]}][[1]]
g=y/.sol
Plot[g[t],{t,0,4\[Pi]}];
gff=g//FullForm
gff[[1,3]]
You will see that the InterpolatingFunction is a composite object with
several lists. The third one in (in this incarnation of Mathematica) is a
list of the nodes.
Cheers,
Kevin
Virgil Stokes wrote in message <7c5ait$7pr at smc.vnet.net>...
>I have a nonlinear ODE that I solve numerically with NDSolve and
>this of course uses InterpolatingFunction.
>
>Example:
>
> Sol = NDSolve[ {LEE[[1]], LEE[[2]],\[Theta]1[0]==\[Theta]10,
> \[Theta]1'[0]==\[Theta]1d0, \[Theta]2[0]==\[Theta]20,
> \[Theta]2'[0]==\[Theta]2d0}, q,{t,0,tfinal}, AccuracyGoal->18,
> PrecisionGoal->18,
> WorkingPrecision->36,
> MaxSteps->Infinity] (* Forward dynamics *)
>
>{{\[Theta]1[t]
> \[Rule]InterpolatingFunction[{{0,
> 2.00000000000000000000000000000000000}},"<>"][t],
> \[Theta]2[t]
> \[Rule]InterpolatingFunction[{{0,
> 2.00000000000000000000000000000000000}},"<>"][t]}}
>
>** How can I obtain the complete list of domain values used (all t values)
> by the InterpolatingFunction?
>
>-- V. Stokes
>
>
>