Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Better check for trac #29936.
Browse files Browse the repository at this point in the history
  • Loading branch information
tscrim committed Apr 23, 2021
1 parent 3ead571 commit 8f00631
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/sage/geometry/hyperbolic_space/hyperbolic_geodesic.py
Original file line number Diff line number Diff line change
Expand Up @@ -1408,8 +1408,9 @@ def perpendicular_bisector(self): # UHP
....: p = g.perpendicular_bisector()
....: q = h.perpendicular_bisector()
....: c = lambda x: x.coordinates()
....: assert bool(c(g.intersection(p)[0]) - c(g.midpoint()) < 1e-9)
....: assert bool(c(h.intersection(q)[0]) - c(g.midpoint()) < 1e-9)
....: error_ab = norm(c(g.intersection(p)[0]) - c(g.midpoint()))
....: error_ba = norm(c(h.intersection(q)[0]) - c(h.midpoint()))
....: assert(bool(error_ab < 1e-9) and bool(error_ba < 1e-9))
sage: works_both_ways(1 + I, 2 + 0.5*I)
sage: works_both_ways(2 + I, 2 + 0.5*I)
"""
Expand Down

0 comments on commit 8f00631

Please sign in to comment.