Re: Integrating Interpolating function
- To: mathgroup at smc.vnet.net
- Subject: [mg120681] Re: Integrating Interpolating function
- From: James Womack <james.c.womack at gmail.com>
- Date: Wed, 3 Aug 2011 07:39:16 -0400 (EDT)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
- References: <201108031107.HAA10850@smc.vnet.net>
To integrate over an InterpolatingFunction, you need to use NIntegrate
(numerical integration), rather than Integrate. Hope this helps!
On 3 August 2011 12:07, math_new <dom.woe at gmail.com> 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
>
>
- Follow-Ups:
- Re: Integrating Interpolating function
- From: Robert Rosenbaum <robertr@math.uh.edu>
- Re: Integrating Interpolating function
- References:
- Integrating Interpolating function
- From: math_new <dom.woe@gmail.com>
- Integrating Interpolating function