Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Prev Previous commit
Next Next commit
Improve docs
  • Loading branch information
Xiaokang2022 committed Oct 31, 2024
commit 6d0cf7419bfbbb9a2582b77705adf1530c2d4879
4 changes: 2 additions & 2 deletions Doc/library/cmath.rst
Original file line number Diff line number Diff line change
Expand Up @@ -227,9 +227,9 @@ Classification functions
between *a* and *b*, relative to the larger absolute value of *a* or *b*.
For example, to set a tolerance of 5%, pass ``rel_tol=0.05``. The default
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.
within about 9 decimal digits. *rel_tol* must be a nonnegative value.

*abs_tol* is the minimum absolute tolerance; it must be at least ``0.0``.
*abs_tol* is the absolute tolerance; it must be at least ``0.0``.
When comparing to ``0.0``, the default *abs_tol* of ``0.0`` means that only
``0.0`` is close to ``0.0``. Pass a larger tolerance to allow for floating
point inaccuracies.
Expand Down
4 changes: 2 additions & 2 deletions Doc/library/math.rst
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,9 @@ Number-theoretic and representation functions
between *a* and *b*, relative to the larger absolute value of *a* or *b*.
For example, to set a tolerance of 5%, pass ``rel_tol=0.05``. The default
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.
within about 9 decimal digits. *rel_tol* must be a nonnegative value.

*abs_tol* is the minimum absolute tolerance; it must be at least ``0.0``.
*abs_tol* is the absolute tolerance; it must be at least ``0.0``.
When comparing to ``0.0``, the default tolerance values means that only
``0.0`` is close to ``0.0``. Pass an appropriate absolute tolerance to
compare with ``0.0``.
Expand Down
Loading