Re: Nested numerical integration
- To: mathgroup at smc.vnet.net
- Subject: [mg99195] Re: Nested numerical integration
- From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
- Date: Wed, 29 Apr 2009 06:39:40 -0400 (EDT)
- Organization: Uni Leipzig
- References: <gt6flm$rtj$1@smc.vnet.net>
- Reply-to: kuska at informatik.uni-leipzig.de
Hi,
inner[w_?NumericQ] := NIntegrate[1/(s - w), {s, 1, 5}]
NIntegrate[w^2*inner[w], {w, -5, -1}]
?
Regards
Jens
tsg.moore at googlemail.com wrote:
> Hi, I'd like to compute a nested integral like,
>
> NIntegrate[ w^2 * NIntegrate[1/(s-w), {s, 1, 5}], {w, -5, -1}]
>
> Unfortunately, mathematica gives me an error (NIntegrate::inumr) and
> it also outputs the wrong value. Is there a way to do these types of
> integrals?
>