MathGroup Archive 1997

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

Search the Archive

bug in Interpolation[] of Mma 3.0

  • To: mathgroup at
  • Subject: [mg5767] bug in Interpolation[] of Mma 3.0
  • From: Gennady <stupakov at>
  • Date: Sat, 18 Jan 1997 14:58:51 -0500
  • Organization: SLAC
  • Sender: owner-wri-mathgroup at

In my calculation of Interpolation[] function with Mathematica 3.0
I found the following bug.
If I run a piece of code given below with Mma 3.0 on my PowerPC 9500/120
and compare the ListPlot of the original array and the Plot
of its Interpolation function, I see that the interpolation is very
poor. There is a big bump between values of abscissa 1.6 and 3.4
which certainly should not be there.
The integral of the interpolation function (computed in the last line
of the code) equals 33.838.

If I run the same code with Mathematica 2.2 (on the same PowerPC),
I find that the bump disappears, and the visual agreement between
the ListPlot and the Interpolation function is much better. Also,
the integral now is 27.0384, rather than 33.838.

It would be interesting to check if the same bug appears on other
computers/platforms. I have reported the bug to Wolfram Research.

Gennady Stupakov.

(*---- Mathematica code --------*)
testlist={{0., 4.037}, {1.689, 4.744}, 
  {3.379, 6.865}, {3.551, 7.637}, 
  {3.723, 9.563}, {4.157, 17.429}, 
  {4.251, 19.065}};

  • Prev by Date: Re: Image Processing: Mathematica?
  • Next by Date: Contour Plot
  • Previous by thread: bug in Interpolation[] of Mma 3.0
  • Next by thread: Re: bug in Interpolation[] of Mma 3.0