MathGroup Archive 2006

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

Search the Archive

Re: NDSolve


Use...

Clear[y]
ysol = NDSolve[.....]

y[x_] = y[x]/.ysol

David Park
djmp at earthlink.net
http://home.earthlink.net/~djmp/ 

From: Subbu [mailto:subbaraokommuri at gmail.com]
To: mathgroup at smc.vnet.net


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: Where do I put my own add-on packages?
  • Next by Date: Re: List Operations
  • Previous by thread: NDSolve
  • Next by thread: Re: NDSolve