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 >