Approximate comparison

bosl2.comparisons.approx(a, b, eps=1e-09)[source]

True if a and b are equal, or numerically/component-wise within eps.

Parameters:

eps (float)

Return type:

bool