cf.RTOL

cf.RTOL(*rtol)

Return or set the default value of relative tolerance for testing numerically tolerant equality.

Parameters :
rtol : int, optional

The new value of relative tolerance.

Returns :
out : float or None

If rtol was not set return the existing value of relative tolerance, otherwise return None.

Examples

>>> cf.RTOL()
1.0000000000000001e-05
>>> cf.RTOL(1e-10)
>>> cf.RTOL()
1e-10

Previous topic

cf.FM_THRESHOLD

Next topic

cf.eq

This Page