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

Method isNaN

lean_py/z3/core.py:3206–3209  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3204 return repr(self)
3205
3206 def isNaN(self) -> bool:
3207 if isinstance(self._ast, FpLitNode):
3208 return math.isnan(struct.unpack("<d", struct.pack("<Q", self._ast.bits))[0])
3209 return False
3210
3211 def isInf(self) -> bool:
3212 if isinstance(self._ast, FpLitNode):

Callers 2

test_fp_nanMethod · 0.80

Calls

no outgoing calls

Tested by 2

test_fp_nanMethod · 0.64