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

Method replace

ar.py:295–297  ·  view source on GitHub ↗
(self, v0: str, e0: dict[str, float])

Source from the content-addressed store, hash-verified

293 self.v2e[v] = {v: frac(1)}
294
295 def replace(self, v0: str, e0: dict[str, float]) -> None:
296 for v, e in list(self.v2e.items()):
297 self.v2e[v] = replace(e, v0, e0)
298
299 def add_expr(self, vc: list[tuple[str, float]]) -> bool:
300 """Add a new equality, represented by the list of tuples vc=[(v, c), ..]."""

Callers 2

add_exprMethod · 0.95
write_solutionFunction · 0.80

Calls 1

replaceFunction · 0.85

Tested by

no test coverage detected