mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-05-14 19:43:41 +02:00
Merge branch 'develop' into documentation
This commit is contained in:
commit
efb8c0ca72
4 changed files with 37 additions and 1 deletions
12
tests/special_test.py
Normal file
12
tests/special_test.py
Normal file
|
@ -0,0 +1,12 @@
|
|||
import numpy as np
|
||||
import scipy
|
||||
import pyerrors as pe
|
||||
import pytest
|
||||
|
||||
from autograd import jacobian
|
||||
from numdifftools import Jacobian as num_jacobian
|
||||
|
||||
def test_kn():
|
||||
for n in np.arange(0, 10):
|
||||
for val in np.linspace(0.1, 7.3, 10):
|
||||
assert np.isclose(num_jacobian(lambda x: scipy.special.kn(n, x))(val), jacobian(lambda x: pe.special.kn(n, x))(val), rtol=1e-10, atol=1e-10)
|
Loading…
Add table
Add a link
Reference in a new issue