Skip to content

Commit

Permalink
python/verify/complex_volume/closed.py: Go through sage_helper
Browse files Browse the repository at this point in the history
  • Loading branch information
mkoeppe committed Nov 1, 2024
1 parent d279039 commit 06ff706
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions python/verify/complex_volume/closed.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
if _within_sage:
from sage.symbolic.constants import pi
from sage.arith.misc import XGCD as xgcd
import sage.all
from ...sage_helper import I

from .. import hyperbolicity

Expand Down Expand Up @@ -69,8 +69,8 @@ def zero_lifted_holonomy(manifold, m, l, f):

# Compute by what multiple of 2 pi i to adjust
g, a, b = xgcd(m_fill, l_fill)
m -= p * a * multiple_of_pi * sage.all.I
l -= p * b * multiple_of_pi * sage.all.I
m -= p * a * multiple_of_pi * I
l -= p * b * multiple_of_pi * I

# For sanity, double check that we compute it right.
p_interval = (m_fill * m + l_fill * l).imag() / multiple_of_pi
Expand Down Expand Up @@ -166,4 +166,4 @@ def verified_complex_volume_closed_torsion(manifold, bits_prec=None):
# I.
# Also add multiples of pi^2/2 to try to get the Chern-Simons part
# between -pi^2/4 and pi^2/4.
return normalize_by_pi_square_over_two(complex_volume) / sage.all.I
return normalize_by_pi_square_over_two(complex_volume) / I

0 comments on commit 06ff706

Please sign in to comment.