Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #4169
| From | "Kevin J. McCann" <Kevin.McCann@umbc.edu> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Integrating Interpolating function |
| Date | 2011-08-03 23:23 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <j1cl9s$g5n$1@smc.vnet.net> (permalink) |
| 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
>
Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Find similar | Unroll thread
Integrating Interpolating function math_new <dom.woe@gmail.com> - 2011-08-03 11:13 +0000 Re: Integrating Interpolating function "Kevin J. McCann" <Kevin.McCann@umbc.edu> - 2011-08-03 23:23 +0000
csiph-web