MCPcopy Create free account
hub / github.com/cortex-js/compute-engine / sympy_solve

Function sympy_solve

benchmarks/audit/gen_solve.py:235–243  ·  view source on GitHub ↗

SymPy comparator outcome, using its most capable solver (`solve`). Returns {status, roots[]}: status ∈ {ok, unsolved}.

(expr)

Source from the content-addressed store, hash-verified

233
234
235def sympy_solve(expr):
236 """SymPy comparator outcome, using its most capable solver (`solve`).
237
238 Returns {status, roots[]}: status ∈ {ok, unsolved}.
239 """
240 roots = solve_real_roots(expr)
241 if roots:
242 return {"status": "ok", "roots": roots}
243 return {"status": "unsolved", "roots": []}
244
245
246out = []

Callers 1

gen_solve.pyFile · 0.85

Calls 1

solve_real_rootsFunction · 0.85

Tested by

no test coverage detected