From 05b34b6bbc0743213b6f8872458180475977eb20 Mon Sep 17 00:00:00 2001 From: peng Date: Sat, 10 Feb 2024 14:54:56 -0500 Subject: [PATCH] fix bug in check_cyclic(). Bug can be reproduced by angbisec_bline_cyclic a b c = triangle; f = on_bline f b c, angle_bisector f b a c ? cyclic a b c f Also in https://github.com/google-deepmind/alphageometry/pull/16 (Fix incorrect tuple unpacking in check_cyclic #16) --- numericals.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/numericals.py b/numericals.py index e9c092d..72c4805 100644 --- a/numericals.py +++ b/numericals.py @@ -702,7 +702,7 @@ def check_perp(points: list[Point]) -> bool: def check_cyclic(points: list[Point]) -> bool: points = list(set(points)) - (a, b, c), *ps = points + (a, b, c, *ps) = points circle = Circle(p1=a, p2=b, p3=c) for d in ps: if not close_enough(d.distance(circle.center), circle.radius):