rtol
rtol, short for relative tolerance, is a parameter used in numerical computing to specify when two floating-point values are considered close. It is often paired with an absolute tolerance (atol) to form a closeness criterion that accounts for both relative and absolute differences.
A common formulation compares two numbers a and b using the condition |a - b| <= atol + rtol
rtol is widely used in testing and numerical verification. Functions such as isclose and allclose in scientific
Choosing values for rtol depends on the numerical method and precision. Typical rtol values range from 1e-5
See also: isclose, allclose, tolerance, numerical precision.