MathGroup Archive 2006

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Getting the value of the independent var from the dep.var using NDSolve

  • To: mathgroup at smc.vnet.net
  • Subject: [mg63701] Re: [mg63667] Getting the value of the independent var from the dep.var using NDSolve
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Tue, 10 Jan 2006 01:48:57 -0500 (EST)
  • Reply-to: hanlonr at cox.net
  • Sender: owner-wri-mathgroup at wolfram.com

Clear[y];
y=y/.NDSolve[{y'[t]==t,y[0]==0},
          y,{t,0,6}][[1]];

y[0]

3.4561741870059357*^-25

With[{p=8},FindRoot[y[t]==p,{t,2}]]

{t -> 3.9999999963414212}

y[t]/.%

8.


Bob Hanlon

> 
> From: pradeep suresh <pradeep at purdue.edu>
To: mathgroup at smc.vnet.net
> Date: 2006/01/09 Mon AM 04:49:04 EST
> Subject: [mg63701] [mg63667]  Getting the value of the independent var from the 
dep.var using NDSolve
> 
> Hi all,
> i have a specific problem of finding the point at which the dependent 
> variable takes on a particular value in teh solution of a differential 
> equation.
> e.g. for simplicity
> we have the equation y'[t]==t, and the initial cond. y[0]==0.y is the 
> dep. variable and t is the independent variable.
> i want to find out the 't' at which y[t]==p(p is known, say 8)
> and since i am already using NDSolve to solve this and other equations 
> i'd like to achieve this working around NDSolve,
> could anyone suggets a solution to this problem??
> thanks a ton!
> Pradeep
> 
> 


  • Prev by Date: Re: Re: Getting the small parts right or wrong. Order and Collect
  • Next by Date: Re: Noob ? about Transpose and List Operations
  • Previous by thread: Re: Getting the value of the independent var from the dep.var using NDSolve
  • Next by thread: Re: Getting the value of the independent var from the dep.var using NDSolve