MathGroup Archive 2011

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

Search the Archive

Re: Integrating Interpolating function

  • To: mathgroup at smc.vnet.net
  • Subject: [mg120684] Re: Integrating Interpolating function
  • From: "Kevin J. McCann" <Kevin.McCann at umbc.edu>
  • Date: Wed, 3 Aug 2011 19:19:43 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • References: <j1bag4$ami$1@smc.vnet.net>

Try this.

F = f/.sol

NIntegrate[t F[t],{t,0,tend}] (* You need to numerically integrate *)


Cheers,

Kevin

On 8/3/2011 7:13 AM, math_new wrote:
> Hi,
>
> I solve a system of differential equations using NDSolve up to time
> t_end. which gives me something like
>
> sol = {f->InterpolatingFunction}
>
> Now I want to do an integral like that
>
> Integrate[t*f[t],{t,0,tend}]
>
> but it won't be computed. What am I doing wrong?
>
> Cheers
>




  • Prev by Date: Re: Memory leak or flawed garbage collector
  • Next by Date: Re: OpenCLQ failing
  • Previous by thread: Re: Integrating Interpolating function
  • Next by thread: Re: Integrating Interpolating function