rtoy / maxima

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

Tensor.dem fails in tendemo.mac #608

Open rtoy opened 2 days ago

rtoy commented 2 days ago

Imported from SourceForge on 2024-07-03 02:08:56 Created by richardgobeli on 2017-08-15 04:42:41 Original: https://sourceforge.net/p/maxima/bugs/3325


tensor.dem loads tendemo.mac. The printing of the selectable options causes the read selection not to work. It is like the read is executed before the printing. is done. There are three positions in this file where the read selction does not work without the delay.

I got it to work if I run a for loop to delay the read selection unil after the printing is done. Example is here in tendemo.mac. print("A. Algebraic tensor manipulation"), print("E. Complete examples"), print("X. Exit this demo"), print(""), / the following line is added so the read will work. / for a: 1 thru 26000 step 1 do a*a, sel:read("Select an option by its number followed by a semicolon (;)"), if sel=1 then demo(itensor1) else if sel=2 then demo(itensor2)

The modified file is attached.

Attachments:

rtoy commented 2 days ago

Imported from SourceForge on 2024-07-03 02:08:57 Created by vttoth on 2017-08-20 02:34:29 Original: https://sourceforge.net/p/maxima/bugs/3325/#2063


First of all, it "works for me"; I am running vanilla Maxima from the Linux command line.

I am guessing that the problem occurs when running Maxima in a graphical environment, probably wxMaxima.

A CPU-intensive loop for timing is not a solution. It will likely work (or fail) differently on different systems. In any case, I am inclined to close this as not a Maxima bug but a front-end bug, since it works fine in text mode for me; however, I think I'll wait just in case others can repro the problem in text mode.

rtoy commented 2 days ago

Imported from SourceForge on 2024-07-03 02:09:00 Created by vttoth on 2017-08-20 02:35:15 Original: https://sourceforge.net/p/maxima/bugs/3325/#7261


rtoy commented 2 days ago

Imported from SourceForge on 2024-07-03 02:09:04 Created by kjak on 2017-08-20 20:29:11 Original: https://sourceforge.net/p/maxima/bugs/3325/#f2b6


Works for me

Maxima version: "branch_5_40_base_195_gfde5b0741_dirty" Maxima build date: "2017-08-19 20:12:05" Host type: "x86_64-unknown-openbsd6.1" Lisp implementation type: "SBCL" Lisp implementation version: "1.3.10.openbsd.1"

rtoy commented 2 days ago

Imported from SourceForge on 2024-07-03 02:09:07 Created by kjak on 2017-08-22 01:12:09 Original: https://sourceforge.net/p/maxima/bugs/3325/#457d


Also works for me using xmaxima (on the same box as before). I don't have wxmaxima available to test with right now.

Richard: Like Viktor said, this could be a problem in wxmaxima. If you are using wxmaxima, would it be possible for you to try this out in plain (text mode) Maxima and let us know whether or not you see the same behavior there?

rtoy commented 2 days ago

Imported from SourceForge on 2024-07-03 02:09:11 Created by richardgobeli on 2018-01-16 02:21:57 Original: https://sourceforge.net/p/maxima/bugs/3325/#d271


This has been taken care of in wxMaxima. Thanks

rtoy commented 2 days ago

Imported from SourceForge on 2024-07-03 02:09:14 Created by kjak on 2018-05-15 23:43:16 Original: https://sourceforge.net/p/maxima/bugs/3325/#491a


rtoy commented 2 days ago

Imported from SourceForge on 2024-07-03 02:09:18 Created by kjak on 2018-05-15 23:43:16 Original: https://sourceforge.net/p/maxima/bugs/3325/#3f4d


I'm closing this as wont-fix since the OP confirmed that the problem was in wxmaxima.