MathGroup Archive 2003

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

Search the Archive

Re: [Integrate] Why two results of same eq. are different?


SJK> I got very extraordinary results today from below two same integrals
SJK> except one is symbolic one and the other is numeric one:
SJK> A. In[1]= N[Integrate[ Log[2, 1 + 10*x]*Exp[-x]*x, {x, 0, Infinity}]]
SJK>     Out[1]= -3.77002
SJK> B. In[2]= NIntegrate[ Log[2, 1 + 10*x]*Exp[-x]*x, {x, 0, Infinity}]
SJK>     Out[2]= 4.05856

SJK> Why did I got the different results of these, surprisingly?

This is a so-called regression bug (the current version cannot do
what the previous one did correctly).

This bug was introduced in Mathematica 4.0 (April 21, 1999).

Mathematica 3.0 (April 25, 1997) returns a valid value for your
integral producing  (9*I*E^(1/10)*Pi)/(10*Log[2]) - (-10 + 9*E^\
(1/10)*(I*Pi + ExpIntegralEi[-(1/10)]))/(10*Log[2]) which is just

   1/10*(9*Exp[1/10]*ExpIntegralE[1, 1/10] + 10)/Log[2] //N

   4.05856


Cheers,

Vladimir Bondarenko

http://www.cybertester.com/


  • Prev by Date: Re: 3D Convex Hull
  • Next by Date: Calling Mathematica via MathLink multiple times
  • Previous by thread: [Integrate] Why two results of same eq. are different?
  • Next by thread: Re: [Integrate] Why two results of same eq. are different?