diff --git a/src/sage/schemes/elliptic_curves/ell_point.py b/src/sage/schemes/elliptic_curves/ell_point.py index f02bb90f282..34615bb46b8 100755 --- a/src/sage/schemes/elliptic_curves/ell_point.py +++ b/src/sage/schemes/elliptic_curves/ell_point.py @@ -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 = () @@ -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,