rtoy / maxima

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

draw2d(points(data)); - Error #3767

Closed rtoy closed 3 months ago

rtoy commented 3 months ago

Imported from SourceForge on 2024-07-08 14:57:46 Created by sikkenogetvrovl on 2015-01-12 14:29:03 Original: https://sourceforge.net/p/maxima/bugs/2886


data : makelist([x, random(1)], x, 1, 10, 1); draw2d(points(data)); gives no graph, but the error:

[gr2d(points)] wxdraw2d(points(data));

Gives just an "error" image


Windows7 wxbuild_info()$ wxMaxima version: 14.12.0 Maxima version: 5.35.1 Maxima build date: 2014-12-23 14:34:16 Host type: i686-pc-mingw32 Lisp implementation type: SBCL Lisp implementation version: 1.2.1

rtoy commented 3 months ago

Imported from SourceForge on 2024-07-08 14:57:47 Created by andrejv on 2015-01-12 15:45:07 Original: https://sourceforge.net/p/maxima/bugs/2886/#db54


Did you enter the commands manually or were they loaded from a file?

rtoy commented 3 months ago

Imported from SourceForge on 2024-07-08 14:57:51 Created by sikkenogetvrovl on 2015-01-12 16:24:03 Original: https://sourceforge.net/p/maxima/bugs/2886/#7c03


When I enter it manually - it works

When I try load (lsquares) two times - it seems to work the second time

The others seems to work afterwards, when they are entered manually in an empty worksheet the first time...

rtoy commented 3 months ago

Imported from SourceForge on 2024-07-08 14:57:54 Created by sikkenogetvrovl on 2015-01-12 16:37:05 Original: https://sourceforge.net/p/maxima/bugs/2886/#b2ec


The above seems to be true with all the packages I have been using:

load(fmin_cobyla); load (lsquares); load("draw"); load("simplify_sum"); load(interpol); load (graphs); load("fft");

However load (lsquares); Reported an error during the first compilation:

; file: C:/Program Files (x86)/Maxima-5.35.1/share/maxima/5.35.1/share/lbfgs/lb1.lisp ; in: DEFUN LB1 ; (PROG ((I 0)) ; (DECLARE (TYPE (INTEGER) I)) ; (COND ; ((= ITER 0) ; (F2CL-LIB:FFORMAT MP ; ("" ; "~%")) ; (F2CL-LIB:FFORMAT MP ; (" N=" 1 # " NUMBER OF CORRECTIONS=" 1 # "~%" ; " INITIAL VALUES" "~%") ; N M) ; (F2CL-LIB:FFORMAT MP (" F= " 1 # " GNORM= " 1 # "~%") F GNORM) ; (COND (# # # # #)) ; (F2CL-LIB:FFORMAT MP ; ("" ; "~%")) ; (F2CL-LIB:FFORMAT MP ; ("~%" " I NFN" "~5@T" "FUNC" "~20@T" "GNORM" "~19@T" ; "STEPLENGTH" "~%" "~%"))) ; (T ; (IF (AND # #) ; (GO END_LABEL)) ; (COND (# #) (T # #)) (COND (# # # #)) ; (IF FINISH ; (F2CL-LIB:FFORMAT MP #)))) ; (GO END_LABEL) ; END_LABEL ; (RETURN (VALUES NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL))) ; --> BLOCK ; ==> ; (LET ((I 0)) ; (DECLARE (TYPE (INTEGER) I)) ; (TAGBODY ; (COND ; ((= ITER 0) (F2CL-LIB:FFORMAT MP #) (F2CL-LIB:FFORMAT MP # N M) ; (F2CL-LIB:FFORMAT MP # F GNORM) (COND #) (F2CL-LIB:FFORMAT MP #) ; (F2CL-LIB:FFORMAT MP #)) ; (T ; (IF # ; #) ; (COND # #) (COND #) ; (IF FINISH ; #))) ; (GO END_LABEL) ; END_LABEL ; (RETURN (VALUES NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL)))) ; ; caught STYLE-WARNING: ; The variable I is defined but never used. ; ; compilation unit finished ; caught 1 STYLE-WARNING condition (%o2) "C:/PROGRA~2/MAXIMA~1.1/share/maxima/5.35.1/share/lsquares/lsquares.mac"

rtoy commented 3 months ago

Imported from SourceForge on 2024-07-08 14:57:58 Created by sikkenogetvrovl on 2015-01-12 17:29:01 Original: https://sourceforge.net/p/maxima/bugs/2886/#b655


Back to wxdraw2d(points(..))

When I try to save an existing wxmx fie as an xmx file and reload that one, the plot(points(..)) dosen't work.

When copying the commands needed to do the plot into an fresh wxMaxima worksheet, the plot works. Wierd ??

rtoy commented 3 months ago

Imported from SourceForge on 2024-07-08 14:58:01 Created by andrejv on 2015-01-12 21:47:08 Original: https://sourceforge.net/p/maxima/bugs/2886/#00a1


rtoy commented 3 months ago

Imported from SourceForge on 2024-07-08 14:58:05 Created by andrejv on 2015-01-12 21:47:08 Original: https://sourceforge.net/p/maxima/bugs/2886/#772f


This is a duplication of bug #2628.

Also look at https://github.com/andrejv/wxmaxima/issues/393