rtoy / maxima

A Clone of Maxima's repo
Other
0 stars 0 forks source link

gcfactor(0) -> division by zero #67

Closed rtoy closed 2 months ago

rtoy commented 2 months ago

Imported from SourceForge on 2024-07-01 18:02:08 Created by gschint on 2016-12-28 19:20:14 Original: https://sourceforge.net/p/maxima/bugs/3265


gcfactor(0); Maxima encountered a Lisp error: Condition in MACSYMA-TOP-LEVEL [or a callee]: INTERNAL-SIMPLE-ERROR: Zero divisor. Automatically continuing. To enable the Lisp debugger set debugger-hook to nil.

This is with maxima 5.37.2 (Ubuntu 16.04). Expected result: 0 (or a more precise error message, but not an uncaught internal lisp error).

rtoy commented 2 months ago

Imported from SourceForge on 2024-07-01 18:02:09 Created by macrakis on 2018-10-16 03:39:14 Original: https://sourceforge.net/p/maxima/bugs/3265/#37c3


Tested in 5.42. Still broken.

rtoy commented 2 months ago

Imported from SourceForge on 2024-07-01 18:02:11 Created by kjak on 2019-10-29 23:45:55 Original: https://sourceforge.net/p/maxima/bugs/3265/#78c9


rtoy commented 2 months ago

Imported from SourceForge on 2024-07-01 18:02:14 Created by kjak on 2019-10-29 23:45:55 Original: https://sourceforge.net/p/maxima/bugs/3265/#4bc9


Thank you for the report. I've fixed this with commit [e0298c]:

(%i1) gcfactor (0);
(%o1) 0

By the way, it looks like this was broken back in Maxima 5.0 as well.

rtoy commented 2 months ago

Imported from SourceForge on 2024-07-01 18:02:16 Created by kjak on 2019-11-02 02:54:56 Original: https://sourceforge.net/p/maxima/bugs/3265/#8f32