MCPcopy Create free account
hub / github.com/TheAlgorithms/Go / equal

Function equal

search/ternary_test.go:10–12  ·  view source on GitHub ↗
(a, b float64)

Source from the content-addressed store, hash-verified

8const EPS = 1e-6
9
10func equal(a, b float64) bool {
11 return math.Abs(a-b) <= EPS
12}
13
14func TestTernaryMax(t *testing.T) {
15

Callers 2

TestTernaryMaxFunction · 0.85
TestTernaryMinFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected