eq#

relsad.utils.eq(x: float, y: float, tol: float = 1e-06)[source]#

Checks for equality within a tolerance

Parameters
  • x (float) – Left hand side

  • y (float) – Right hand side

  • tol (float) – The equality tolerance

Returns

equal – Boolean variable stating whether the left and right hand side are equal within the given tolerance

Return type

bool