Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ sqrt
Method
sqrt
Lib/test/test_builtin.py:1306–1307 ·
view source on GitHub ↗
(x)
Source
from the content-addressed store, hash-verified
1304
from
math
import
sqrt
1305
except
ImportError:
1306
def
sqrt(x):
1307
return
pow(x, 0.5)
1308
self.assertEqual(
1309
list(map(
lambda
x: list(map(sqrt, x)), [[16, 4], [81, 9]])),
1310
[[4.0, 2.0], [9.0, 3.0]]
Callers
15
test_compare_to_variance
Method · 0.45
test_decimal_sqrt_of_frac
Method · 0.45
test_compare_to_variance
Method · 0.45
test_sqrtprod_helper_function_fundamentals
Method · 0.45
test_sqrtprod_helper_function_improved_accuracy
Method · 0.45
reference_value
Method · 0.45
test_implicit_context
Method · 0.45
test_named_parameters
Method · 0.45
roots
Method · 0.45
testHypot
Method · 0.45
testHypotAccuracy
Method · 0.45
testDist
Method · 0.45
Calls
1
pow
Function · 0.50
Tested by
no test coverage detected