MCPcopy 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

reference_valueMethod · 0.45
test_implicit_contextMethod · 0.45
test_named_parametersMethod · 0.45
rootsMethod · 0.45
testHypotMethod · 0.45
testHypotAccuracyMethod · 0.45
testDistMethod · 0.45

Calls 1

powFunction · 0.50

Tested by

no test coverage detected