Bug: Gap3 interface confuses variables

asked 2019-11-17 14:41:52 +0200

Bob67846 gravatar image

updated 2019-11-25 20:12:44 +0200

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

2

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 18:13:27 +0200 )edit
1

Is there something in particular forcing you to use gap3?

Iguananaut gravatar imageIguananaut ( 2019-11-26 15:45:01 +0200 )edit

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

Bob67846 gravatar imageBob67846 ( 2019-11-26 20:28:42 +0200 )edit
1

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 12:28:46 +0200 )edit