[GAP Forum] gap little bug in version 4.5.2
Ilko Brauch
iabrauch at gmx.net
Thu Dec 15 23:44:32 GMT 2011
Dear GAP developers,
Thank you very much for allowing people to use your great system !
The gap4r4 and gap4r5 releases could be installed without problems.
As a hobbyist I use gap to get a better understanding of some elementary
group theory.
While reading the very helpful paper "Abstract Algebra in GAP" from
Alexander Hulpke I noticed the following little bug in the beta Version
of GAP 4.5.2:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
GAP, Version 4.5.2(beta) of 27-Nov-2011
Architecture: i686-pc-linux-gnu-gcc-default32
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# editing the following two lines of code:
G := CyclicGroup(IsFpGroup,3);
Elements(G);
# lead to the following error message:
Error, List Element: <list>[2] must have an assigned value in
if e[2] >= 0 and e[2] < n then
return u;
elif e[2] mod n = 0 then
return One( f );
else
e := [ e[1], e[2] mod n ];
return ObjByExtRep( fam, e );
fi; called from
f( UnderlyingElement( x ) ) called from
com( left ) called from
FpElmComparisonMethod( FamilyObj( left ) )( left, right ) called from
IS_SSORT_LIST_DEFAULT( list ) called from
IsSSortedList( l ) called from
... at line 2 of *stdin*
you can 'return;' after assigning a value
# The code works without problems with the following older version:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
GAP, Version 4.5.1 of 15-Apr-2011
Architecture: i686-pc-linux-gnu-gcc-default32
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Finally I hope that I sent this message to the right place and that it
will not waste to much of your time.
Kind regards
Ilko
More information about the Forum
mailing list