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

Class RCFNum

lean_py/z3/core.py:4627–4640  ·  view source on GitHub ↗

Real closed field number (not natively supported).

Source from the content-addressed store, hash-verified

4625
4626
4627class RCFNum:
4628 """Real closed field number (not natively supported)."""
4629
4630 def __init__(self, val: Any = 0) -> None:
4631 self._val = val
4632
4633 def __repr__(self) -> str:
4634 return f"RCFNum({self._val})"
4635
4636 def __add__(self, other: Any) -> RCFNum:
4637 return RCFNum(f"({self._val} + {other})")
4638
4639 def __mul__(self, other: Any) -> RCFNum:
4640 return RCFNum(f"({self._val} * {other})")
4641
4642
4643def Pi() -> ArithRef:

Callers 2

__add__Method · 0.85
__mul__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected