-
-
Notifications
You must be signed in to change notification settings - Fork 656
add .conductor() and .order_of_conductor() methods for orders in quadratic fields #35271
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
add .conductor() and .order_of_conductor() methods for orders in quadratic fields #35271
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM modulo the two fairly trivial things.
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## develop #35271 +/- ##
===========================================
- Coverage 88.62% 88.62% -0.01%
===========================================
Files 2148 2148
Lines 398653 398664 +11
===========================================
+ Hits 353308 353312 +4
- Misses 45345 45352 +7
... and 28 files with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
Thank you, done. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you.
It seems I forgot to actually run the test prior to pushing, but the good news is that it already revealed another bug! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch.
cdc7f4a
to
48fa9f9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. If desired, you can do two trivial things:
- Pass an iterator to
order()
inorder_of_conductor()
. - Add a space
\neq2
->\neq 2
as I find it easier to read.
You can ignore these if you want and set the status badge to positive review.
48fa9f9
to
c6461b0
Compare
This doesn't work without additional code changes: The |
I see; I didn't notice that. Thanks for checking. |
c6461b0
to
0f61ef0
Compare
Documentation preview for this PR is ready! 🎉 |
This patch adds two tiny convenience methods:
.conductor()
for orders in quadratic fields, returning the unique positive integer.order_of_conductor()
for quadratic fields, returning the unique order with the given conductor.