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

Method _create_const_ang

graph.py:143–147  ·  view source on GitHub ↗
(self, n: int, d: int)

Source from the content-addressed store, hash-verified

141 return g
142
143 def _create_const_ang(self, n: int, d: int) -> None:
144 n, d = ar.simplify(n, d)
145 ang = self.aconst[(n, d)] = self.new_node(Angle, f'{n}pi/{d}')
146 ang.set_directions(None, None)
147 self.connect_val(ang, deps=None)
148
149 def _create_const_rat(self, n: int, d: int) -> None:
150 n, d = ar.simplify(n, d)

Callers 1

Calls 3

new_nodeMethod · 0.95
connect_valMethod · 0.95
set_directionsMethod · 0.80

Tested by

no test coverage detected