MCPcopy Create free account
hub / github.com/bgrimstad/splinter / equalsWithinRange

Function equalsWithinRange

test/testingutilities.cpp:39–42  ·  view source on GitHub ↗

Checks if a is within margin of b

Source from the content-addressed store, hash-verified

37
38// Checks if a is within margin of b
39bool equalsWithinRange(double a, double b, double margin)
40{
41 return b - margin <= a && a <= b + margin;
42}
43
44bool compareFunctions(const Function &f1, const Function &f2)
45{

Callers 1

operator==Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected