MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Nested numerical integration

  • To: mathgroup at smc.vnet.net
  • Subject: [mg99188] Re: Nested numerical integration
  • From: Jason Merrill <jwmerrill at gmail.com>
  • Date: Wed, 29 Apr 2009 06:38:23 -0400 (EDT)
  • References: <gt6flm$rtj$1@smc.vnet.net>

On Apr 28, 4:44 am, tsg.mo... 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?

In[186]:= NIntegrate[w^2/(s - w), {s, 1, 5}, {w, -5, -1}]

Out[186]= 25.8364

JM


  • Prev by Date: Re: How to select several cells
  • Next by Date: why is this happening?
  • Previous by thread: Re: Nested numerical integration
  • Next by thread: Re: Nested numerical integration