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

Function close_enough

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

Source from the content-addressed store, hash-verified

1239
1240
1241def close_enough(a: float, b: float, tol: float = 1e-12) -> bool:
1242 return abs(a - b) < tol
1243
1244
1245def assert_close_enough(a: float, b: float, tol: float = 1e-12) -> None:

Callers 15

sameMethod · 0.85
sample_withinMethod · 0.85
sample_withinMethod · 0.85
check_aconstFunction · 0.85
check_circleFunction · 0.85
check_cyclicFunction · 0.85
check_const_angleFunction · 0.85
check_eqangleFunction · 0.85
check_eqratioFunction · 0.85
check_congFunction · 0.85
check_midpFunction · 0.85
check_simtriFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected