Menu

#127 limit asks sign of IND

closed
nobody
5
2007-09-22
2002-09-19
No

limit(abs(sin(x)),x,inf)

foolishly asks the user

Is IND positive, negative, or zero?

Moreover, if the user foolishly replies zero, Maxima gets
into an infinite loop!

(Note that the only case where Limit(abs(IND)) should
not return IND is if the limit set consists exactly of { x , -
x } for some x. This does happen, it is true, but Limit
has far less subtle bugs.... Yes, I know, single-
argument Limit only handles the various INFs, not IND
and UND.)

Discussion

  • Robert Dodier

    Robert Dodier - 2006-04-09
    • labels: --> Lisp Core - Limit
     
  • Robert Dodier

    Robert Dodier - 2006-06-26

    Logged In: YES
    user_id=501686

    Observed in 5.9.3.

    This may be due in some part to a bug or wart in asksign --
    if asksign is asked about ind, it may see that ind is
    neither pos nor neg nor zero & therefore ask the user about
    ind. Seems like asksign should return ind. But that in turn
    supposes that the caller knows how to cope with a ind return
    value. Just a thought.

     
  • Dan Gildea

    Dan Gildea - 2007-09-22

    Logged In: YES
    user_id=1797506
    Originator: NO

    fixed in limit.lisp rev 1.41

    (%i4) limit(abs(sin(x)),x,inf);
    (%o4) ind

    See also bug 1629723.

     
  • Dan Gildea

    Dan Gildea - 2007-09-22
    • status: open --> closed
     

Log in to post a comment.