From 3112747ee22aa8a64b382565bb7814fc17e1370d Mon Sep 17 00:00:00 2001 From: Matthias Goerner <1239022+unhyperbolic@users.noreply.github.com> Date: Thu, 22 Feb 2024 19:55:53 -0800 Subject: [PATCH] Python code to compute distances: fix _safe_arccosh. --- python/hyperboloid/distances.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/hyperboloid/distances.py b/python/hyperboloid/distances.py index 52eaa08a..5d73c582 100644 --- a/python/hyperboloid/distances.py +++ b/python/hyperboloid/distances.py @@ -206,7 +206,7 @@ def _safe_arccosh(p): RIF = p.parent() p = p.intersection(RIF(1, sage.all.Infinity)) else: - if p < 0: + if p < 1: RF = p.parent() return RF(0) return p.arccosh()