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

Method check_record_eq

ar.py:414–423  ·  view source on GitHub ↗
(self, v1: str, v2: str, v3: str, v4: str)

Source from the content-addressed store, hash-verified

412 self.eqs.add((v4, v3, v2, v1))
413
414 def check_record_eq(self, v1: str, v2: str, v3: str, v4: str) -> bool:
415 if (v1, v2, v3, v4) in self.eqs:
416 return True
417 if (v2, v1, v4, v3) in self.eqs:
418 return True
419 if (v3, v4, v1, v2) in self.eqs:
420 return True
421 if (v4, v3, v2, v1) in self.eqs:
422 return True
423 return False
424
425 def add_eq2(
426 self, a: str, b: str, m: float, n: float, dep: pr.Dependency

Callers 1

get_all_eqs_and_whyMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected