cf.ATOL¶

cf.
ATOL
(*atol)[source]¶ The tolerance on absolute differences when testing for numerically tolerant equality.
Two real numbers
x
andy
are considered equal ifabs(xy) <= atol + rtol*abs(y)
, where atol (the tolerance on absolute differences) and rtol (the tolerance on relative differences) are positive, typically very small numbers. By default both are set to the system epsilon (the difference between 1 and the least value greater than 1 that is representable as a float).New in version 1.7.0.
See also
 Parameters
 atol:
float
, optional The new value of absolute tolerance. The default is to not change the current value.
 atol:
 Returns
float
The value prior to the change, or the current value if no new value was specified.
Examples:
>>> ATOL() 2.220446049250313e16 >>> old = ATOL(1e10) >>> ATOL() 1e10 >>> ATOL(old) 1e10 >>> ATOL() 2.220446049250313e16