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 interpretation of mma Series[] command?

  • Subject: [mg2231] Bug in interpretation of mma Series[] command?
  • From: siegman at (A. E. Siegman)
  • Date: Wed, 18 Oct 1995 05:52:42 GMT
  • Approved:
  • Distribution: local
  • Newsgroups: wri.mathgroup
  • Organization: Stanford University
  • Sender: daemon at ( )

Does the following make sense to anyone?

   f[y] = Exp[-a y^2] * Series[1/(1 + y^2), {y,0,5}]
                 2            a    4       6
   1 + (-1 - a) y  + (1 + a + --) y  + O[y]

This strikes me as a really counter-intuitive, perverse,
guaranteed-to-cause-trouble "gotcha".  

I have to agree that 

   f[y] = Exp[-a y^2] * Normal[Series[1/(1 + y^2), {y,0,5}]]

        2    4
   1 - y  + y
       a y

does what's expected; but the first case should surely
either generate an error msg, or not be interpreted at
all.  There's no way any sensible interpretation of
the input command (by normal users, that is) should lead
to series expansion of the Exp[] function also.

  • Prev by Date: Re: Replacing a part of a list/matrix?
  • Next by Date: simultaneous equations
  • Previous by thread: Re: color in ListContourPlot
  • Next by thread: Bug in interpretation of mma Series[] command?