Skip to content

Commit

Permalink
Rename prec_words_to_bits to prec_pari_to_bits
Browse files Browse the repository at this point in the history
  • Loading branch information
antonio-rojas committed Oct 12, 2024
1 parent b75d8ea commit b3c57e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sage/schemes/elliptic_curves/ell_point.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@

try:
from sage.libs.pari.all import pari, PariError
from cypari2.pari_instance import prec_words_to_bits
from cypari2.pari_instance import prec_pari_to_bits
except ImportError:
PariError = ()

Expand Down Expand Up @@ -3705,7 +3705,7 @@ def elliptic_logarithm(self, embedding=None, precision=100,
E_pari = E_work.pari_curve()
log_pari = E_pari.ellpointtoz(pt_pari, precision=working_prec)

while prec_words_to_bits(log_pari.precision()) < precision:
while prec_pari_to_bits(log_pari.precision()) < precision:
# result is not precise enough, re-compute with double
# precision. if the base field is not QQ, this
# requires modifying the precision of the embedding,
Expand Down

0 comments on commit b3c57e1

Please sign in to comment.