def test_il_f_f1(self): a, b, c = 1.8, 2.2, 0.5 x, y, z = 1.1, 1.2, 1.3 tvar = (x, y, z) args = (a, b, z) transforms = ['Laplace_inverse', 'Fourier', 'Fourier'] opts = [ { 'n': 24 }, { 'func_is_real': True, 'real_part_even': True, 'b': 10 }, { 'func_is_real': True, 'real_part_even': True, 'b': 10 }, ] assert_allclose(ntransform(self.il_f_f1, transforms, tvar, args, opts)[0], self.il_f_f1_(*(tvar + args)), atol=1e-5)
def test_f_f1(self): a, b, c = 1.8, 2.2, 0.5 x, y, z = 1.1, 1.2, 1.3 tvar = (x, y) args= (a, b) transforms=['Fourier', 'Fourier'] opts=[{'func_is_real': True, 'real_part_even':True, 'b':10}]*2 assert_allclose(ntransform(self.f_f1, transforms, tvar, args, opts)[0], self.f_f1_(*(tvar+args)), atol=1e-5)
def test_h_f1(self): a, b, c = 1.8, 2.2, 0.5 x, y, z = 1.1, 1.2, 1.3 tvar = (x, y) args= (a, b) transforms=['Hankel', 'Fourier'] opts=[{'shanks_ind': -5}, {'func_is_real': True, 'real_part_even':True, 'b':np.inf}] assert_allclose(ntransform(self.h_f1, transforms, tvar, args, opts)[0], self.h_f1_(*(tvar+args)), atol=0)
def test_f_f1(self): a, b, c = 1.8, 2.2, 0.5 x, y, z = 1.1, 1.2, 1.3 tvar = (x, y) args = (a, b) transforms = ['Fourier', 'Fourier'] opts = [{'func_is_real': True, 'real_part_even': True, 'b': 10}] * 2 assert_allclose(ntransform(self.f_f1, transforms, tvar, args, opts)[0], self.f_f1_(*(tvar + args)), atol=1e-5)
def test_h_il_f1(self): a, b, c = 1.8, 2.2, 0.5 x, y, z = 1.1, 1.2, 1.3 tvar = (x, y, z) args= (a, b, z) transforms=['Hankel', 'Laplace_inverse', 'Fourier'] opts=[{'shanks_ind': -5}, {'n': 24, 'vectorized':False}, {'func_is_real': True, 'real_part_even':True, 'b':10}] assert_allclose(ntransform(self.h_il_f1, transforms, tvar, args, opts)[0], self.h_il_f1_(*(tvar+args)), atol=1e-5)
def test_il_f_f1(self): a, b, c = 1.8, 2.2, 0.5 x, y, z = 1.1, 1.2, 1.3 tvar = (x, y, z) args= (a, b, z) transforms=['Laplace_inverse', 'Fourier', 'Fourier'] opts=[{'n': 24}, {'func_is_real': True, 'real_part_even':True, 'b':10}, {'func_is_real': True, 'real_part_even':True, 'b':10}, ] assert_allclose(ntransform(self.il_f_f1, transforms, tvar, args, opts)[0], self.il_f_f1_(*(tvar+args)), atol=1e-5)
def test_h_f1(self): a, b, c = 1.8, 2.2, 0.5 x, y, z = 1.1, 1.2, 1.3 tvar = (x, y) args = (a, b) transforms = ['Hankel', 'Fourier'] opts = [{ 'shanks_ind': -5 }, { 'func_is_real': True, 'real_part_even': True, 'b': np.inf }] assert_allclose(ntransform(self.h_f1, transforms, tvar, args, opts)[0], self.h_f1_(*(tvar + args)), atol=0)
def test_h_il_f1(self): a, b, c = 1.8, 2.2, 0.5 x, y, z = 1.1, 1.2, 1.3 tvar = (x, y, z) args = (a, b, z) transforms = ['Hankel', 'Laplace_inverse', 'Fourier'] opts = [{ 'shanks_ind': -5 }, { 'n': 24, 'vectorized': False }, { 'func_is_real': True, 'real_part_even': True, 'b': 10 }] assert_allclose(ntransform(self.h_il_f1, transforms, tvar, args, opts)[0], self.h_il_f1_(*(tvar + args)), atol=1e-5)