Skip to content

Commit ef5b89a

Browse files
committed
Add a test
1 parent adf63a0 commit ef5b89a

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

src/sage/rings/function_field/jacobian_base.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -654,6 +654,27 @@ def __call__(self, x):
654654
True
655655
sage: J_hess(q) == p
656656
True
657+
658+
If ``x`` is an effective divisor, it is checked that the degree
659+
is equal to the degree of the base divisor. See :issue:38623.
660+
661+
sage: K.<x> = FunctionField(GF(7))
662+
sage: _.<t> = K[]
663+
sage: F.<y> = K.extension(t^2 - x^6 - 3)
664+
sage: O = F.maximal_order()
665+
sage: D1 = (O.ideal(x + 1, y + 2)*O.ideal(x + 2, y + 2)).divisor()
666+
sage: I = O.ideal(x + 3, y+5)*O.ideal(x + 4, y + 5)*O.ideal(x + 5, y + 5)
667+
sage: D2 = I.divisor()
668+
sage: J = F.jacobian(model='hess')
669+
sage: J(D1)
670+
[Place (x + 1, y + 2)
671+
+ Place (x + 2, y + 2)]
672+
sage: J(D2)
673+
Traceback (most recent call last):
674+
...
675+
ValueError: effective divisor is not of degree 2
676+
sage: J.base_divisor().degree()
677+
2
657678
"""
658679
F = self._function_field
659680
if isinstance(x, JacobianPoint_base):

0 commit comments

Comments
 (0)