-
-
Notifications
You must be signed in to change notification settings - Fork 517
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
Computing genus of a curve: bugfix (addresses #28336) #39453
base: develop
Are you sure you want to change the base?
Conversation
Checking geometric irreducibility takes a nontrivial time. Hence the The WARNING section, you are deleting, explains it clearly. |
We may close #28336 as already "fixed" |
- ``base_ring`` -- the base ring of the divisor group; usually, this is | ||
`\ZZ` (default) or `\QQ` | ||
- ``base_ring`` -- the base ring of the divisor group. Usually, this is | ||
`\ZZ` (default) or `\QQ`. | ||
|
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.
no, your changes here are not correct. The input entries are not sentences, and should have no final dot
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.
A semicolon is not correct for the same reason, since it is not joining two related independent clauses. I don't care that much and just reverted it.
src/sage/schemes/curves/curve.py
Outdated
@@ -224,7 +264,14 @@ def geometric_genus(self): | |||
sage: C.geometric_genus() | |||
3 | |||
|
|||
Examples of affine curves:: | |||
Addressing issue #28336 |
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.
de-indent this line, add ::
at then end and an empty line after it
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.
done, thanks!
)
The code to compute the genus of a curve first checks that the given curve is geometrically irreducible and throws an error if it is not.
Fixes #28336.
📝 Checklist
⌛ Dependencies