MathGroup Archive 2006

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

Search the Archive

Re: NDSolve

  • To: mathgroup at smc.vnet.net
  • Subject: [mg65689] Re: [mg65684] NDSolve
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Sun, 16 Apr 2006 01:44:45 -0400 (EDT)
  • Reply-to: hanlonr at cox.net
  • Sender: owner-wri-mathgroup at wolfram.com

soln=y/.NDSolve[{y'[x]==Sin[x],y[1]==1},y,{x,0,3}][[1]];

{soln[2],soln'[2]}

{1.95645,0.909305}

Plot[{soln[x],soln'[x]},{x,0,3}];


Bob Hanlon

> 
> From: "Subbu" <subbaraokommuri at gmail.com>
To: mathgroup at smc.vnet.net
> Subject: [mg65689] [mg65684] NDSolve
> 
> Hi,
> 
> I have a question regarding usage of solution given by NDSolve function
> 
> Suppose We have solved one ODE with NDSolve, it will give the solution
> as interpolating function. Suppose I am solving a ODE for solution of y
> as a function of x, I will get solution like
> {y -> InterpolatingFunction[{{0., 1.}}, <>]}.
> 
> Now I can get the values of y at any x using y[x]/.sol/.x->0.5
> 
> But Suppose I want to evaluate the y' [x](Derivative of y) how can we
> get it that from the solution of NDSolve 
> 
> Thank you
> 
> 


  • Prev by Date: Re: List Operations
  • Next by Date: Re: NDSolve
  • Previous by thread: Re: NDSolve
  • Next by thread: Re: NDSolve