Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1995

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

Search the Archive

Bug in SeriesData

  • To: mathgroup at
  • Subject: [mg1255] Bug in SeriesData
  • From: steve at (Steve Trainoff)
  • Date: Fri, 26 May 1995 08:01:03 -0400
  • Organization: University of California, Santa Barbara

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

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]

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

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

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


Insert pithy maxim here...
steve at (NeXT mail)
91 Wolfram Research, Inc.

In[1]:= SeriesData[x, here...
steve at (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?