MathGroup Archive 2005

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

Search the Archive

Re: NSum: badly missed Option

  • To: mathgroup at
  • Subject: [mg56938] Re: NSum: badly missed Option
  • From: "antononcube" <antononcube at>
  • Date: Tue, 10 May 2005 03:43:02 -0400 (EDT)
  • References: <><d5j5ob$qf3$> <d5kb13$2at$>
  • Sender: owner-wri-mathgroup at

Alan wrote:
> "Chris Chiasson" <chris.chiasson at> wrote in message
> news:d5j5ob$qf3$1 at
> > Try SetOptions on NIntegrate before the NSum call.
> Excellent. Thanks for the solution!
> regards,
> alan

Nested Method option can be used in NSum.

For example:

In[1]:= NSum[1/(x20*Sin[x]^2), {x, 2, Infinity}, Method -> NIntegrate]

  NIntegrate failed to converge to prescribed accuracy after 7
    recursive bisections in x near x = 18.8764.

Out[1]= 1.16782 10^-6

In[2]:= NSum[1/(x20*Sin[x]^2), {x, 1, Infinity}, Method -> {NIntegrate,
MaxRecursion -> 100}]

  Numerical integration converging too slowly; suspect one of the
   singularity, value of the integration being 0, oscillatory
integrand, or
   insufficient WorkingPrecision. If your integrand is oscillatory try
   the option Method->Oscillatory in NIntegrate.

Out[2]= 1.41228

Anton Antonov
Wolfram Research, Inc.

  • Prev by Date: Re: Re: How to quickly find number of non-zero elements in sparse matrix rows?
  • Next by Date: Re: Partitioning a list from an index
  • Previous by thread: Re: NSum: badly missed Option
  • Next by thread: Re: Re: NSum: badly missed Option