#5844: [with patch, needs work] Improvement of
PermutationGroup_generic.has_element() and is_subgroup
--------------------------+-------------------------------------------------
Reporter: SimonKing | Owner: SimonKing
Type: enhancement | Status: new
Priority: minor | Milestone: sage-3.4.2
Component: group_theory | Keywords: PermutationGroup has_element
is_subgroup
--------------------------+-------------------------------------------------
Comment(by SimonKing):
OK, here is a second patch, to be applied after the first. With it, all
above-mentioned doc tests pass. Now, {{{G.has_element(x)}}} just returns
{{{x in G}}}
Note that above I pointed out one difference between the old version of
{{{has_element()}}} and {{{__contains__()}}}: In the old version,
{{{G.has_element(1)}}} raised an error. Now, it does not, since
{{{G.__contains__(1)}}} interpretes 1 as the trivial group element.
But, as much as I understand, this is the only mathematical difference
between the old and the new version.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5844#comment:6>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---