MathGroup Archive 1999

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

Search the Archive

Re: interpolatingfunction

  • To: mathgroup at
  • Subject: [mg15887] Re: [mg15855] interpolatingfunction
  • From: "Kevin J. McCann" <kevinmccann at>
  • Date: Wed, 17 Feb 1999 23:33:37 -0500
  • Sender: owner-wri-mathgroup at

Here is an example:

sol=NDSolve[{x''[t] + x[t] == 0,x[0]==0,x'[0]==1},x,{t,0,4Pi}][[1]]

Note the [[1]] at the end of the first line.  This does away with an
extra set of { }.

Second line defines f to be the InterpolatingFunction answer.

Third shows that you can plot it and even take its derivative. Try 


-----Original Message-----
From: phpcp at <phpcp at>
To: mathgroup at
Subject: [mg15887] [mg15855] interpolatingfunction

>hi all,
>i solved a d.e. using NDSolve and got a solution in
>InterpolatingFunction form. How can i define this as a function that
>returns values using an argument.

  • Prev by Date: RE: List manipulation question
  • Next by Date: Re: QM,physics, mathematica
  • Previous by thread: interpolatingfunction
  • Next by thread: Re: interpolatingfunction