cf.List.equivalent¶
-
List.
equivalent
(other, rtol=None, atol=None, traceback=False)[source]¶ True if two constructs are equal, False otherwise.
Two real numbers
x
andy
are considered equal if|x-y|<=atol+rtol|y|
, whereatol
(the tolerance on absolute differences) andrtol
(the tolerance on relative differences) are positive, typically very small numbers. See the atol and rtol parameters.Parameters: - other:
The object to compare for equality.
- atol:
float
, optional The tolerance on absolute differences between real numbers. The default value is set by the
ATOL
function.- rtol:
float
, optional The tolerance on relative differences between real numbers. The default value is set by the
RTOL
function.