From b3c57e1eca9fd561a8dffb3df7ab78f448786189 Mon Sep 17 00:00:00 2001 From: Antonio Rojas Date: Sun, 6 Oct 2024 22:52:02 +0200 Subject: [PATCH] Rename prec_words_to_bits to prec_pari_to_bits --- src/sage/schemes/elliptic_curves/ell_point.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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,