MathGroup Archive 2005

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

Search the Archive

Re: Using InterpolatingFunction from NDSolve

  • To: mathgroup at
  • Subject: [mg58566] Re: Using InterpolatingFunction from NDSolve
  • From: "Jens-Peer Kuska" <kuska at>
  • Date: Fri, 8 Jul 2005 00:45:57 -0400 (EDT)
  • Organization: Uni Leipzig
  • References: <daitir$su4$>
  • Sender: owner-wri-mathgroup at


since you avoid to give us an example here is how 
to do it
in a 1d case:

sol = x[t] /.
NDSolve[{x''[t] + x[t] == 0, x[0] == 1, x'[0] == 
   x[t], {t, 0, 2Pi}][[1]];

sqrsol = Interpolation[

and here is the square of the solution
Plot[sqrsol, {t, 0, 2Pi}]



"Tamás" <tladics at> schrieb im 
Newsbeitrag news:daitir$su4$1 at
>I solved a PDE with NDSolve in Mathematica 5.1. I 
>could plot,
> differentiate and integrate the obtained 
> InterpolatingFunction object,
> the result being a similar object. I was able to 
> integrate the 2nd
> derivative of it. What I need is to integrate 
> the square of the
> obtained InterpolatingFunction object (the 
> square itself does not
> simplify to such an object).
> You can see the details on my homepage:
> Every suggestions are welcome!
> Thank you,
> Tamás

  • Prev by Date: Re: superscripts
  • Next by Date: Re: Don't understand behaviour of Solve[]
  • Previous by thread: Re: Using InterpolatingFunction from NDSolve
  • Next by thread: Re: Using InterpolatingFunction from NDSolve