cf.RTOL

cf.RTOL(*rtol)[source]

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.OF_FRACTION

Next topic

cf.TEMPDIR

This Page