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

Method same

numericals.py:194–197  ·  view source on GitHub ↗
(self, other: Line)

Source from the content-addressed store, hash-verified

192 return other.greater_than(self)
193
194 def same(self, other: Line) -> bool:
195 a, b, c = self.coefficients
196 x, y, z = other.coefficients
197 return close_enough(a * y, b * x) and close_enough(b * z, c * y)
198
199 def equal(self, other: Line) -> bool:
200 a, b, _ = self.coefficients

Callers 1

check_paraFunction · 0.95

Calls 1

close_enoughFunction · 0.85

Tested by

no test coverage detected