MCPcopy Create free account
hub / github.com/google-deepmind/alphageometry / assert_close_enough

Function assert_close_enough

numericals.py:1245–1246  ·  view source on GitHub ↗
(a: float, b: float, tol: float = 1e-12)

Source from the content-addressed store, hash-verified

1243
1244
1245def assert_close_enough(a: float, b: float, tol: float = 1e-12) -> None:
1246 assert close_enough(a, b, tol), f'|{a}-{b}| = {abs(a-b)} >= {tol}'
1247
1248
1249def ang_of(tail: Point, head: Point) -> float:

Callers

nothing calls this directly

Calls 1

close_enoughFunction · 0.85

Tested by

no test coverage detected