Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Education > Science > Re: NSum in Mat...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 7 of 7 Topic 1814 of 1945
Post > Topic >>

Re: NSum in Mathematica 6: Success at difficult. Failure at simple.

by SzH <szhorvat@[EMAIL PROTECTED] > Mar 25, 2008 at 11:13 AM

On Mar 25, 5:29 pm, hru...@[EMAIL PROTECTED]
 (Herman Rubin) wrote:
> In article
<aa9545df-690b-4565-8497-ef2e97c78...@[EMAIL PROTECTED]
>,
> Vladimir Bondarenko  <v...@[EMAIL PROTECTED]
> wrote:
>
>
>
> >An interesting catch of yours!
> >Indeed,
> >NSum[Cos[n]^2/n^2, {n,1,Infinity}, Method -> "AlternatingSigns"]
> >NSum[Cos[n]^2/n^2, {n,1,Infinity}, Method -> "WynnEpsilon"]
> >NSum[Cos[n]^2/n^2, {n,1,Infinity}, Method -> "EulerMaclaurin"]
> >0.543756
> >0.553446
> >0.574138
> >So Mathematica 6.0.2  *had* a clear chance to produce a
> >nice answer (0.574138)... but it missed it...
> >Maybe someone from Wolfram Research could enlighten us
> >the customers why such a misfire happened?
> >On Mar 25, 12:55=A0am, SzH <szhor...@[EMAIL PROTECTED]
> wrote:
> >> On Mar 25, 5:28 am, Vladimir Bondarenko <v...@[EMAIL PROTECTED]
> wrote:
> >> > NSum[(Cos[n]/n)^1, {n, 1, Infinity}] =A0 =A0 slow convergence
> >> > NSum[(Cos[n]/n)^2, {n, 1, Infinity}] =A0 =A0 fast convergence
> >> > 0.0420195 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0RIGHT
> >> > 0.572578 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 WRONG
> >> > Any comments?
> >> Interestingly, the setting Method -> "EulerMaclaurin" gives a much
> >> more precise answer (0.574138), however, no explicit setting for
> >> Method can reproduce the answer that we get with Method -> Automatic.
>
> All of this is not surprising.  "Automatic" manages to
> find an analytic function it knows how to compute.
>

Do you mean that in the first case Mathematica computes the result
analytically, and then applies N to get a numerical answer, while in
the second case it is unable do this?  This cannot be the explanation
because Mma can compute the exact result in both cases:

Sum[(Cos[n]/n)^1, {n, 1, Infinity}]
(1/2)*(-Log[1 - E^(-I)] - Log[1 - E^I])

N[%]
0.04201950582536906 + 0.*I

Sum[(Cos[n]/n)^2, {n, 1, Infinity}]
(1/12)*(Pi^2 + 3*PolyLog[2, E^(-2*I)] + 3*PolyLog[2, E^(2*I)])

N[%]
0.5741377400533296 + 0.*I
 




 7 Posts in Topic:
NSum in Mathematica 6: Success at difficult. Failure at simple.
Vladimir Bondarenko <v  2008-03-24 21:28:46 
Re: NSum in Mathematica 6: Success at difficult. Failure at simp
Vladimir Bondarenko <v  2008-03-25 00:09:49 
Re: NSum in Mathematica 6: Success at difficult. Failure at simp
SzH <szhorvat@[EMAIL P  2008-03-25 00:55:25 
Re: NSum in Mathematica 6: Success at difficult. Failure at simp
Vladimir Bondarenko <v  2008-03-25 03:12:19 
Re: NSum in Mathematica 6: Success at difficult. Failure at simp
hrubin@[EMAIL PROTECTED]   2008-03-25 12:29:54 
Re: NSum in Mathematica 6: Success at difficult. Failure at simp
hrubin@[EMAIL PROTECTED]   2008-03-25 12:11:45 
Re: NSum in Mathematica 6: Success at difficult. Failure at simp
SzH <szhorvat@[EMAIL P  2008-03-25 11:13:15 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Dec 4 18:59:22 CST 2008.