MathGroup Archive 1995

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

Search the Archive

Bug in SeriesData


I was running a long MMA program which generated the following expression  
somewhere in the middle.  

 2
x  + O[x]

This should be impossible to generate.  A little detective work with FullForm revealed the problem illustrated below.  It appears that SeriesData doesn't check to see if the series coefficients are functions of the series parameter.

Mathematica 2.0 for NeXT
Copyright 1988-91 Wolfram Research, Inc.

In[1]:= SeriesData[x, 0, {x^2}, 0, 1, 1]

         2
Out[1]= x  + O[x]		(* The infamous expression *)

In[2]:= SeriesData[x, 0, {1,x}, 0, 2, 1]

                      2
Out[2]= 1 + x x + O[x]		(* My personal favorite *)


--

..STeve
------------------------------------
Insert pithy maxim here...
steve at tweedledee.ucsb.edu (NeXT mail)
91 Wolfram Research, Inc.

In[1]:= SeriesData[x, here...
steve at tweedledee.ucsb.edu (NeXT mail)


  • Prev by Date: Re: Optimizing FindMinimum for speed using intermediate calculations.
  • Next by Date: Which of Maeder's Mma Programming Books?
  • Previous by thread: Re: Points Otdisappeared in ListPlot
  • Next by thread: Which of Maeder's Mma Programming Books?