MCPcopy Index your code
hub / github.com/python/cpython / Condition

Method Condition

Lib/test/test_math.py:1519–1520  ·  view source on GitHub ↗
(x, y)

Source from the content-addressed store, hash-verified

1517 return sum(starmap(operator.mul, zip(vec1, vec2, strict=True)))
1518
1519 def Condition(x, y):
1520 return 2.0 * DotExact(map(abs, x), map(abs, y)) / abs(DotExact(x, y))
1521
1522 def linspace(lo, hi, n):
1523 width = (hi - lo) / (n - 1)

Callers 15

__init__Method · 0.45
__init__Method · 0.45
test_notifyMethod · 0.45
test_notify_allMethod · 0.45
test_notify_nMethod · 0.45
test_timeoutMethod · 0.45
test_waitforMethod · 0.45
test_waitfor_timeoutMethod · 0.45
test_wait_resultMethod · 0.45
test_conditionMethod · 0.45
testWithConditionMethod · 0.45

Calls 1

absFunction · 0.85

Tested by

no test coverage detected