Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit 136948a

Browse files
committed
Merge branch 'u/jpflori/ticket/15148' into raise-plus
Conflicts: src/sage/schemes/hyperelliptic_curves/hyperelliptic_finite_field.py resolve merge conflict with #15148
2 parents ba866ef + 8029bc6 commit 136948a

File tree

2 files changed

+840
-69
lines changed

2 files changed

+840
-69
lines changed

src/sage/schemes/generic/scheme.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -712,9 +712,7 @@ def count_points(self, n):
712712
sage: C.count_points(4)
713713
[6, 12, 18, 96]
714714
sage: C.base_extend(GF(9,'a')).count_points(2)
715-
Traceback (most recent call last):
716-
...
717-
NotImplementedError: Point counting only implemented for schemes over prime fields
715+
[12, 96]
718716
"""
719717
F = self.base_ring()
720718
if not F.is_finite():
@@ -760,12 +758,12 @@ def zeta_series(self, n, t):
760758
1 + 6*t + 24*t^2 + 78*t^3 + 240*t^4 + O(t^5)
761759
762760
Note that this function depends on count_points, which is only
763-
defined for prime order fields::
761+
defined for prime order fields for general schemes.
762+
Nonetheless, since :trac:`15108` and :trac:`15148`, it supports
763+
hyperelliptic curves over non-prime fields::
764764
765765
sage: C.base_extend(GF(9,'a')).zeta_series(4,t)
766-
Traceback (most recent call last):
767-
...
768-
NotImplementedError: Point counting only implemented for schemes over prime fields
766+
1 + 12*t + 120*t^2 + 1092*t^3 + 9840*t^4 + O(t^5)
769767
"""
770768

771769
F = self.base_ring()

0 commit comments

Comments
 (0)