hyperell_regulator.regulator.torsion module

Exact orders of divisor classes by principality tests.

torsion_order(F, P, Q, bound=24, *, multiple=None)[source]

The least \(N\le\) bound with \(N(P-Q)\) principal, or None.

With multiple, find the exact order among its divisors, ignoring bound. ("infinity", eta) selects \(\lim y/x^{g+1}=eta\); bare "infinity" returns the smallest order over rational infinite places.

EXAMPLES:

sage: from hyperell_regulator.regulator import torsion_order
sage: from hyperell_regulator.regulator.polynomials import ring
sage: x = ring().gen()
sage: torsion_order(x^5 + x^2 + 2*x + 1, (0, -1), "infinity")
5
sage: F = (1 + x + x^3)^2 + 4*(x + 2*x^2 - x^4)
sage: torsion_order(F, (0, 1), ("infinity", -1), bound=1, multiple=21)
21