Skip to main content
deleted 34 characters in body
Source Link

Bug introduced in 7.0 or earlier and persisting through 11.1 or later. Fixedfixed in 11.3

Bug introduced in 7.0 or earlier and persisting through 11.1 or later. Fixed in 11.3

Bug introduced in 7.0 or earlier and fixed in 11.3

The bug was fixed in version 11.3
Source Link
Vaclav Kotesovec
  • 3.4k
  • 1
  • 13
  • 24

Bug introduced in 7.0 or earlier and persisting through 11.1 or later. Fixed in 11.3

Bug introduced in 7.0 or earlier and persisting through 11.1 or later

Bug introduced in 7.0 or earlier and persisting through 11.1 or later. Fixed in 11.3

added 216 characters in body
Source Link

Bug introduced in 7.0 or earlier and persisting through 11.1 or later


I computed a following limit (related to the asymptotic expansion of the sequence A000009 - number of partitions of nn into distinct parts)

Expand[Limit[(((π BesselI[1, (Sqrt[1/24 + n] π)/Sqrt[3]])/Sqrt[1 + 24 n])/
             (E^((Sqrt[n] π)/Sqrt[3])/(4 3^(1/4) n^(3/4))) -
             (1 + (-((3 Sqrt[3])/(8 π)) + π/(48 Sqrt[3]))/Sqrt[n] +
              (-(5/128) - 45/(128 π^2) + π^2/13824)/n))*n^(3/2), n -> Infinity]]

MathematicaMathematica wrong output (in all versions from 7 to 11) is

(* -((315 Sqrt[3])/(1024 π^3)) + (35 Sqrt[3])/(2048 π) -
   (35 π)/(36864 Sqrt[3]) + π^3/(1990656 Sqrt[3]) *)

My question is: Whywhy is the term

missing in Mathematicathe Mathematica result? This is a bug!

Interesting is that numerically Mathematica evaluateMathematica evaluates a following expression correctly:

Table[N[(((π BesselI[1, (Sqrt[1/24 + n] π)/Sqrt[3]])/Sqrt[1 + 24 n])/
         (E^((Sqrt[n] π)/Sqrt[3])/(4 3^(1/4) n^(3/4))) -
         (1 + (-((3 Sqrt[3])/(8 π)) + π/(48 Sqrt[3]))/Sqrt[n] +
          (-(5/128) - 45/(128 π^2) + π^2/13824)/n))*n^(3/2), 10],
      {n, 1000000, 10000000, 1000000}]

(* {-0.009484688338, -0.009481807906, -0.009480532562, -0.009479772520, -0.009479253935, -0.009478871178, -0.009478573728, -0.009478333979, -0.009478135403, -0.009477967422} *)

I computed a following limit (related to the asymptotic expansion of the sequence A000009 - number of partitions of n into distinct parts)

Expand[Limit[(((π BesselI[1, (Sqrt[1/24 + n] π)/Sqrt[3]])/Sqrt[1 + 24 n])/(E^((Sqrt[n] π)/Sqrt[3])/(4 3^(1/4) n^(3/4))) - (1 + (-((3 Sqrt[3])/(8 π)) + π/(48 Sqrt[3]))/Sqrt[n] + (-(5/128) - 45/(128 π^2) + π^2/13824)/n))*n^(3/2), n -> Infinity]]

Mathematica wrong output (in all versions from 7 to 11) is

(* -((315 Sqrt[3])/(1024 π^3)) + (35 Sqrt[3])/(2048 π) - (35 π)/(36864 Sqrt[3]) + π^3/(1990656 Sqrt[3]) *)

My question is: Why is the term

missing in Mathematica result? This is a bug!

Interesting is that numerically Mathematica evaluate a following expression correctly:

Table[N[(((π BesselI[1, (Sqrt[1/24 + n] π)/Sqrt[3]])/Sqrt[1 + 24 n])/(E^((Sqrt[n] π)/Sqrt[3])/(4 3^(1/4) n^(3/4))) - (1 + (-((3 Sqrt[3])/(8 π)) + π/(48 Sqrt[3]))/Sqrt[n] + (-(5/128) - 45/(128 π^2) + π^2/13824)/n))*n^(3/2), 10], {n, 1000000, 10000000, 1000000}]

(* {-0.009484688338, -0.009481807906, -0.009480532562, -0.009479772520, -0.009479253935, -0.009478871178, -0.009478573728, -0.009478333979, -0.009478135403, -0.009477967422} *)

Bug introduced in 7.0 or earlier and persisting through 11.1 or later


I computed a following limit (related to the asymptotic expansion of the sequence A000009 - number of partitions of n into distinct parts)

Expand[Limit[(((π BesselI[1, (Sqrt[1/24 + n] π)/Sqrt[3]])/Sqrt[1 + 24 n])/
             (E^((Sqrt[n] π)/Sqrt[3])/(4 3^(1/4) n^(3/4))) -
             (1 + (-((3 Sqrt[3])/(8 π)) + π/(48 Sqrt[3]))/Sqrt[n] +
              (-(5/128) - 45/(128 π^2) + π^2/13824)/n))*n^(3/2), n -> Infinity]]

Mathematica wrong output (in all versions from 7 to 11) is

(* -((315 Sqrt[3])/(1024 π^3)) + (35 Sqrt[3])/(2048 π) -
   (35 π)/(36864 Sqrt[3]) + π^3/(1990656 Sqrt[3]) *)

My question is: why is the term

missing in the Mathematica result? This is a bug!

Interesting is that numerically Mathematica evaluates a following expression correctly:

Table[N[(((π BesselI[1, (Sqrt[1/24 + n] π)/Sqrt[3]])/Sqrt[1 + 24 n])/
         (E^((Sqrt[n] π)/Sqrt[3])/(4 3^(1/4) n^(3/4))) -
         (1 + (-((3 Sqrt[3])/(8 π)) + π/(48 Sqrt[3]))/Sqrt[n] +
          (-(5/128) - 45/(128 π^2) + π^2/13824)/n))*n^(3/2), 10],
      {n, 1000000, 10000000, 1000000}]

(* {-0.009484688338, -0.009481807906, -0.009480532562, -0.009479772520, -0.009479253935, -0.009478871178, -0.009478573728, -0.009478333979, -0.009478135403, -0.009477967422} *)
edited tags
Link
Daniel Lichtblau
  • 60.3k
  • 2
  • 105
  • 201
Loading
Routine clean-up
Source Link
m_goldberg
  • 108.1k
  • 16
  • 104
  • 259
Loading
typo in title
Link
Loading
Tweeted twitter.com/StackMma/status/796199448061870080
added 29 characters in body
Source Link
Bob Hanlon
  • 162.6k
  • 7
  • 81
  • 205
Loading
deleted 88 characters in body
Source Link
Bob Hanlon
  • 162.6k
  • 7
  • 81
  • 205
Loading
Source Link
Vaclav Kotesovec
  • 3.4k
  • 1
  • 13
  • 24
Loading