Bug: Gap3 interface confuses variables

asked 2019-11-17 07:41:52 -0600

Bob67846 gravatar image

updated 2019-11-25 13:12:44 -0600

Running

gap3('4', name = 'x')
gap3('5', name = 'y')
gap3('6', name = 'z')

followed up by

gap3('x')
gap3('y')
gap3('z')
gap3('x')

yields

4
5
6
6

instead of 4,5,6,4. Is this a bug or am I doing this wrong?

Update: I've tried it on a different computer (which uses a slightly older version of Sage) and did not have any issues there. I'm running the latest version of Sage here; any idea what might be causing this?

Update2: I'm experiencing the exact same problem on the other computer, when running slightly more complicated code: the gap3 interface seems to override its variables with other outputs.

edit retag flag offensive close merge delete

Comments

1

That's possible; the gap3 module is not well-tested or particularly maintained. It might be deprecated at some point.

Iguananaut gravatar imageIguananaut ( 2019-11-20 11:13:27 -0600 )edit

Is there something in particular forcing you to use gap3?

Iguananaut gravatar imageIguananaut ( 2019-11-26 08:45:01 -0600 )edit

Yes, the CHEVIE package - currently I'm doing some computations with braids.

Bob67846 gravatar imageBob67846 ( 2019-11-26 13:28:42 -0600 )edit

I had a feeling :/ Why don't you ask the authors of CHEVIE if they'd like to help maintain the gap3 interface to Sage, since they seem to think continuing to support gap3 is easier than porting their code to a system that's still supported :/

(P.S. I don't say this to be snarky to you; your problem is legitimate.)

Iguananaut gravatar imageIguananaut ( 2019-11-27 05:28:46 -0600 )edit