rtoy / maxima

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

xMaxima and wxMaxima: eivals causes multiple %o:s #149

Closed rtoy closed 4 months ago

rtoy commented 4 months ago

Imported from SourceForge on 2024-07-02 07:14:10 Created by dmaj26 on 2009-03-05 11:04:04 Original: https://sourceforge.net/p/maxima/bugs/1612


----------------------------------------------------Maxima version: 5.17.0 Maxima build date: 19:8 12/4/2008 host type: i686-pc-mingw32 lisp-implementation-type: GNU Common Lisp (GCL) lisp-implementation-version: GCL 2.6.8 ----------------------------------------------------

a:matrix([1,3],[1,-1]);eigenvalues(a);

causes empty %o:s both in wxMaxima and xMaxima. load(eigen) solves the problem. '? eivals' says:

The package `eigen.mac' is loaded automatically when `eigenvalues' or `eigenvectors' is referenced. If `eigen.mac' is not already loaded, `load ("eigen")' loads it. After loading, all functions and variables in the package are available.

Shouldn't eigen.mac be autoloaded? Otherwise I would expect the output:

%o eigenvalues(a)

rtoy commented 4 months ago

Imported from SourceForge on 2024-07-02 07:14:11 Created by robert_dodier on 2009-03-07 15:39:35 Original: https://sourceforge.net/p/maxima/bugs/1612/#867c


Looks like the problem is due to combination of bugs, one in Maxima and one in the Windows implementation of GCL. (1) The eigenvalues function is automatically loaded the first time it is referenced. Maxima should suppress the prompt when loading the file. (2) Windows GCL has a broken function READ-CHAR-NO-HANG: it always returns NIL. So Maxima thinks that it needs to print a prompt (to tell the user to enter more input).

Probably the easiest thing is to tell Maxima to suppress the prompt while loading the file. Then the bug in READ-CHAR-NO-HANG might have no effect.

By the way, I see multiple %i input prompts. To the original poster: are you seeing %o or %i prompts?

rtoy commented 4 months ago

Imported from SourceForge on 2024-07-02 07:14:13 Created by robert_dodier on 2009-03-07 17:32:03 Original: https://sourceforge.net/p/maxima/bugs/1612/#72e1


Fixed (I hope) by r1.53 src/mload.lisp. Can someone with a Windows build environment please try it.

rtoy commented 4 months ago

Imported from SourceForge on 2024-07-02 07:14:15 Created by dmaj26 on 2009-03-08 08:56:49 Original: https://sourceforge.net/p/maxima/bugs/1612/#e3ad


Sorry, multiple %i:s it should be. Another thing is that 'eivals(a)' causes just

%o eivals(a)

(no autoload, but not exactly the same bug as eigenvals)

rtoy commented 4 months ago

Imported from SourceForge on 2024-07-02 07:14:17 Created by andrejv on 2009-03-10 19:23:46 Original: https://sourceforge.net/p/maxima/bugs/1612/#8c2f


rtoy commented 4 months ago

Imported from SourceForge on 2024-07-02 07:14:19 Created by andrejv on 2009-03-10 19:23:46 Original: https://sourceforge.net/p/maxima/bugs/1612/#d031


The problem is fixed in cvs (checked on windows with xmaxima and wxmaxima).

Andrej