Skip to content
Prev Previous commit
Next Next commit
Improve docs
  • Loading branch information
Xiaokang2022 committed Nov 2, 2024
commit 9cd0d8310c86bc3084d7b6ed1bcefe49f267bf6e
5 changes: 2 additions & 3 deletions Doc/library/cmath.rst
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,8 @@ Classification functions
tolerance is ``1e-09``, which assures that the two values are the same
within about 9 decimal digits. *rel_tol* must be greater than zero.

*abs_tol* is the absolute tolerance; it must be nonnegative.
When comparing to ``0.0``, the relative tolerance value means
``0.0`` is close to ``0.0``. Pass an appropriate absolute tolerance to
*abs_tol* is the absolute tolerance; it must be nonnegative. Only ``0.0``
is close to ``0.0`` per default. Pass an appropriate absolute tolerance to
compare with ``0.0``.

If no errors occur, the result will be:
Expand Down
5 changes: 2 additions & 3 deletions Doc/library/math.rst
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,8 @@ Number-theoretic and representation functions
tolerance is ``1e-09``, which assures that the two values are the same
within about 9 decimal digits. *rel_tol* must be greater than zero.

*abs_tol* is the absolute tolerance; it must be nonnegative.
When comparing to ``0.0``, the relative tolerance value means
``0.0`` is close to ``0.0``. Pass an appropriate absolute tolerance to
*abs_tol* is the absolute tolerance; it must be nonnegative. Only ``0.0``
is close to ``0.0`` per default. Pass an appropriate absolute tolerance to
compare with ``0.0``.

If no errors occur, the result will be:
Expand Down