MCPcopy Create free account
hub / github.com/BasisResearch/lean.py / approx

Method approx

lean_py/z3/core.py:614–618  ·  view source on GitHub ↗

Return rational approximation to given precision.

(self, precision: int = 10)

Source from the content-addressed store, hash-verified

612 __slots__ = ()
613
614 def approx(self, precision: int = 10) -> RatNumRef:
615 """Return rational approximation to given precision."""
616 # In lean.py, algebraic numbers are not natively supported;
617 # return a placeholder rational
618 return RatNumRef(0, 1)
619
620
621class BitVecRef(ExprRef):

Callers

nothing calls this directly

Calls 1

RatNumRefClass · 0.85

Tested by

no test coverage detected