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

Function Sqrt

lean_py/z3/core.py:1908–1911  ·  view source on GitHub ↗

Square root (represented as a^(1/2)).

(a: ArithRef)

Source from the content-addressed store, hash-verified

1906
1907
1908def Sqrt(a: ArithRef) -> ArithRef:
1909 """Square root (represented as a^(1/2))."""
1910 half = RatVal(1, 2)
1911 return a**half
1912
1913
1914# ---------------------------------------------------------------------------

Callers 2

test_sqrtMethod · 0.90
test_sqrt_is_powerMethod · 0.90

Calls 1

RatValFunction · 0.85

Tested by 2

test_sqrtMethod · 0.72
test_sqrt_is_powerMethod · 0.72