       How to use the max value from the solution of NDSolve ?

• To: mathgroup at smc.vnet.net
• Subject: [mg72169] How to use the max value from the solution of NDSolve ?
• From: Cham <martin465 at sympatico.ca>
• Date: Wed, 13 Dec 2006 06:42:03 -0500 (EST)
• Organization: The Math Forum

```Suppose I'm solving a differential equation with NDSolve :

NDSolve[{ x'[t] == f[ x[t] ],  x == 3.4 ], { x }, {t, 0, 10}]

Mathematica then finds a solution like this :

Out[]=  {{ x -> InterpolatingFunction[{{ 0.,  2.6532}}, <>}}

Next, I need to make several graphs of the solution.  How can I point to the max value t = 2.6532 without retyping that value each time, especially if I change the initial condition x == 3.4 and redo NDSolve again ?  What is the name of the t_max found by Mathematica ?  Or how can I point to that special value ?  Is there a way ?

```

• Prev by Date: Re: How to plot a parellal line
• Next by Date: Re: solve ODE help?
• Previous by thread: Re: FindRoot anomaly (example from Mathematica Tutorial)
• Next by thread: Re: How to use the max value from the solution of NDSolve ?