Small fix to Legendre root Python tests
This commit is contained in:
parent
da3cd27363
commit
eb4a76a4eb
1 changed files with 2 additions and 2 deletions
|
@ -44,8 +44,8 @@ def test_legendre_transform():
|
|||
def check_legendre_roots(n):
|
||||
xs, ws = ([], []) if n == 0 else p_roots(n) # from SciPy
|
||||
xl, wl = libsharp.legendre_roots(n)
|
||||
assert_allclose(xs, xl)
|
||||
assert_allclose(ws, wl)
|
||||
assert_allclose(xs, xl, rtol=1e-14, atol=1e-14)
|
||||
assert_allclose(ws, wl, rtol=1e-14, atol=1e-14)
|
||||
|
||||
def test_legendre_roots():
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue