Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #4162 > unrolled thread
| Started by | James Womack <james.c.womack@gmail.com> |
|---|---|
| First post | 2011-08-03 11:40 +0000 |
| Last post | 2011-08-03 11:40 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Integrating Interpolating function James Womack <james.c.womack@gmail.com> - 2011-08-03 11:40 +0000
| From | James Womack <james.c.womack@gmail.com> |
|---|---|
| Date | 2011-08-03 11:40 +0000 |
| Subject | Re: Integrating Interpolating function |
| Message-ID | <j1bc2g$b5c$1@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@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
>
>
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web