cf.AuxiliaryCoordinate.equivalent¶
- AuxiliaryCoordinate.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: