You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sage: t=tuple(2**15-iforiinrange(2))
sage: foriinrange(5):SymmetricGroup(2**16+2**i)(t)._libgap_()
(32767,32768)
(32767,32768)(65537,1)
(32767,32768)(65537,1)(65538,2)(65539,3)
(32767,32768)(65537,1)(65538,2)(65539,3)(65540,4)(65541,5)(65542,6)(65543,7)
(32767,32768)(65537,1)(65538,2)(65539,3)(65540,4)(65541,5)(65542,6)(65543,7)(65544,8)(65545,9)(65546,10)(65547,11)(65548,12)(65549,13)(65550,14)(65551,15)
# things seem to work okay on the Sage sidesage: foriinrange(5):SymmetricGroup(2**16+2**i)(t)
(32767,32768)
(32767,32768)
(32767,32768)
(32767,32768)
(32767,32768)
# Or if one starts with libgap.evalsage: foriinrange(5): SymmetricGroup(2**16+2**i)(libgap.eval(str(t)))._libgap_()
(32767,32768)
(32767,32768)
(32767,32768)
(32767,32768)
(32767,32768)
sagemathgh-39999: handle permutations in S_n with n > 2^16
This resolvessagemath#39998, as the issue is gap having small and large
permutations:
https://github.com/gap-system/gap/blob/f0b438db8fa5786d19975e6040076fd46
b08bd85/src/permutat.h#L18-L26
### 📝 Checklist
<!-- Put an `x` in all the boxes that apply. -->
- [x] The title is concise and informative.
- [x] The description explains in detail what this PR is about.
- [x] I have linked a relevant issue or discussion.
- [x] I have created tests covering the changes.
- [x] I have updated the documentation and checked the documentation
preview.
URL: sagemath#39999
Reported by: Edgar Costa
Reviewer(s): Dima Pasechnik, Julian Rüth, Travis Scrimshaw
Steps To Reproduce
You can find the input for the next one example here: https://gist.github.com/edgarcosta/b79829984882a1130b4c393d2c76acca
which shows a more complicated instance of the bug:
Additional Information
A workaround for the moment is to use the pexpect interface.
Environment
Checklist
The text was updated successfully, but these errors were encountered: