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

Function pretty_angle

pretty.py:82–90  ·  view source on GitHub ↗
(a: str, b: str, c: str, d: str)

Source from the content-addressed store, hash-verified

80
81
82def pretty_angle(a: str, b: str, c: str, d: str) -> str:
83 if b in (c, d):
84 a, b = b, a
85 if a == d:
86 c, d = d, c
87
88 if a == c:
89 return f'\u2220{b}{a}{d}'
90 return f'\u2220({a}{b}-{c}{d})'
91
92
93def pretty_nl(name: str, args: list[str]) -> str:

Callers 1

pretty_nlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected