Skip to content

Commit

Permalink
DOC: fix intersphinx reference; replace "pi" with symbol
Browse files Browse the repository at this point in the history
[skip actions] [skip cirrus] [skip azp]
  • Loading branch information
mdhaber authored Sep 21, 2023
1 parent a42827c commit 9dc5865
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions numpy/testing/_private/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1499,8 +1499,8 @@ def assert_allclose(actual, desired, rtol=1e-7, atol=0, equal_nan=True,
>>> np.testing.assert_allclose(x, y, rtol=1e-5, atol=0)
As mentioned in the Notes section, `assert_allclose` has special
handling for scalars. Here, the test checks that the value of `np.sin`
is nearly zero at integer multiples of pi.
handling for scalars. Here, the test checks that the value of `numpy.sin`
is nearly zero at integer multiples of π.
>>> x = np.arange(3) * np.pi
>>> np.testing.assert_allclose(np.sin(x), 0, atol=1e-15)
Expand Down

0 comments on commit 9dc5865

Please sign in to comment.