MCPcopy Create free account
hub / github.com/PRIME-RL/PRIME / _parse

Function _parse

data_preprocessing/math_util/grader.py:318–325  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

316
317def symbolic_equal(a, b, tolerance, timeout=10.0):
318 def _parse(s):
319 for f in [parse_expr, parse_latex]:
320 try:
321 with time_limit(timeout):
322 return f(s)
323 except Exception:
324 pass
325 return s
326
327 a = _parse(a)
328 b = _parse(b)

Callers 1

symbolic_equalFunction · 0.70

Calls 1

time_limitFunction · 0.70

Tested by

no test coverage detected