Skip to content

Commit

Permalink
Python code to compute distances: fix _safe_arccosh.
Browse files Browse the repository at this point in the history
  • Loading branch information
unhyperbolic committed Apr 2, 2024
1 parent fa0f30b commit 3112747
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/hyperboloid/distances.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 3112747

Please sign in to comment.