Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AbelianGroup should not allow negative orders #38967

Open
2 tasks done
DaveWitteMorris opened this issue Nov 14, 2024 · 0 comments · May be fixed by #38970
Open
2 tasks done

AbelianGroup should not allow negative orders #38967

DaveWitteMorris opened this issue Nov 14, 2024 · 0 comments · May be fixed by #38970
Labels

Comments

@DaveWitteMorris
Copy link
Member

Steps To Reproduce

No response

Expected Behavior

The order of a generator of an abelian group should not be allowed to be negative.

sage: AbelianGroup([-4])
ValueError

Actual Behavior

A nonsensical object is created when negative orders are specified.

sage: AbelianGroup([-4])
Multiplicative Abelian group isomorphic to C-4
sage: _.cardinality()
-4

Additional Information

Reported by @mantepse in a comment on PR #38961.

Environment

  • OS:
  • Sage Version:

Checklist

  • I have searched the existing issues for a bug report that matches the one I want to file, without success.
  • I have read the documentation and troubleshoot guide
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant