#1858 non-integer value for maxposex

closed
nobody
None
1
2010-01-02
2009-12-23
No

Maxima shouldn't allow a non-integer value for maxposex and maxnegex.

(%i1) maxposex : a;
(%o1) a

Error message is clear:

(%i4) expand(a*(b+c));
Maxposex must be a non-negative-integer:
a

Error message is unclear:

(%i5) ev(a*(b+c), expand);
Maxima encountered a Lisp error:
Error in MACSYMA-TOP-LEVEL [or a callee]: $A is not of type NUMBER.

Discussion

  • Dieter Kaiser
    Dieter Kaiser
    2010-01-02

    • status: open --> closed
     
  • Dieter Kaiser
    Dieter Kaiser
    2010-01-02

    In mlisp.lisp revision 1.83 a function posintegerset has been added, which checks the assignment of a positive integer. In simp.lisp revision 1.95 the 'assign property for the variables $maxposex and $maxnegex is set to the function posintegerset.

    The user can no longer assign a non-negative integer to the variables $maxposex and $maxnegex.

    Closing this bug report as fixed.

    Dieter Kaiser