numdifftools.tests package

Submodules

numdifftools.tests.conftest module

Dummy conftest.py for numdifftools.

If you don’t know what this is for, just leave it empty. Read more about conftest.py under: https://pytest.org/latest/plugins.html

numdifftools.tests.test_hessian module

class numdifftools.tests.test_hessian.TestHessian(methodName='runTest')[source]

Bases: unittest.case.TestCase

test_hessian()[source]
class numdifftools.tests.test_hessian.classicalHamiltonian[source]
N : scalar
number of ions in the chain
w : scalar
angular trap frequency
C : scalar
Coulomb constant times the electronic charge in SI units.
m : scalar
the mass of a single trapped ion in the chain
initialposition()[source]

Defines initial position as an estimate for the minimize process.

normal_modes(eigenvalues)[source]

the computed eigenvalues of the matrix Vx are of the form (normal_modes)2*m.

potential(positionvector)[source]

positionvector is an 1-d array (vector) of length N that contains the positions of the N ions

numdifftools.tests.test_limits module

Created on 28. aug. 2015

@author: pab

class numdifftools.tests.test_limits.TestLimit(methodName='runTest')[source]

Bases: unittest.case.TestCase

test_derivative_of_cos()[source]
test_difficult_limit()[source]
test_residue()[source]
test_sinx_divx()[source]

numdifftools.tests.test_multicomplex module

Created on 22. apr. 2015

@author: pab

class numdifftools.tests.test_multicomplex.BicomplexTester(methodName='runTest')[source]

Bases: unittest.case.TestCase

test_add()[source]
test_arccos()[source]
test_arcsin()[source]
test_arg_c()[source]
test_assign()[source]
test_cos()[source]
test_der_abs()[source]
test_der_arccos()[source]
test_der_arctan()[source]
test_der_cos()[source]
test_der_log()[source]
test_division()[source]
test_dot()[source]
test_init()[source]
test_multiplication()[source]
test_neg()[source]
test_pow()[source]
test_repr()[source]
test_rpow()[source]
test_rsub()[source]
test_sub()[source]
test_subsref()[source]
class numdifftools.tests.test_multicomplex.DerivativeTester(methodName='runTest')[source]

Bases: unittest.case.TestCase

test_all_first_derivatives()[source]
test_all_second_derivatives()[source]

numdifftools.tests.test_nd_algopy module

class numdifftools.tests.test_nd_algopy.TestDerivative(methodName='runTest')[source]

Bases: unittest.case.TestCase

test_derivative_cube()[source]

Test for Issue 7

test_derivative_exp()[source]
test_derivative_on_log()[source]
test_derivative_on_sinh()[source]
test_derivative_sin()[source]
test_fun_with_additional_parameters()[source]

Test for issue #9

test_high_order_derivative_cos()[source]
class numdifftools.tests.test_nd_algopy.TestGradient(methodName='runTest')[source]

Bases: unittest.case.TestCase

test_on_scalar_function()[source]
class numdifftools.tests.test_nd_algopy.TestHessdiag(methodName='runTest')[source]

Bases: unittest.case.TestCase

test_forward()[source]
test_reverse()[source]
class numdifftools.tests.test_nd_algopy.TestHessian(methodName='runTest')[source]

Bases: unittest.case.TestCase

test_hessian_cosIx_yI_at_I0_0I()[source]
test_run_hamiltonian()[source]
class numdifftools.tests.test_nd_algopy.TestJacobian(methodName='runTest')[source]

Bases: unittest.case.TestCase

test_on_scalar_function()[source]
test_on_vector_valued_function()[source]
class numdifftools.tests.test_nd_algopy.classicalHamiltonian[source]
N : scalar
number of ions in the chain
w : scalar
angular trap frequency
C : scalar
Coulomb constant times the electronic charge in SI units.
m : scalar
the mass of a single trapped ion in the chain
initialposition()[source]

Defines initial position as an estimate for the minimize process.

normal_modes(eigenvalues)[source]

the computed eigenvalues of the matrix Vx are of the form (normal_modes)2*m.

potential(positionvector)[source]

positionvector is an 1-d array (vector) of length N that contains the positions of the N ions

numdifftools.tests.test_numdifftools module

Test functions for numdifftools module

class numdifftools.tests.test_numdifftools.TestDerivative(methodName='runTest')[source]

Bases: unittest.case.TestCase

test_backward_derivative_on_sinh()[source]
test_central_and_forward_derivative_on_log()[source]
test_default_scale()[source]
test_derivative_cube()[source]

Test for Issue 7

test_derivative_exp()[source]
test_derivative_of_cos_x()[source]
test_derivative_sin()[source]
test_fun_with_additional_parameters()[source]

Test for issue #9

test_high_order_derivative_cos()[source]
test_infinite_functions()[source]
class numdifftools.tests.test_numdifftools.TestFornbergWeights(methodName='runTest')[source]

Bases: unittest.case.TestCase

test_weights()[source]
class numdifftools.tests.test_numdifftools.TestGlobalFunctions(methodName='runTest')[source]

Bases: unittest.case.TestCase

testdea3()[source]
class numdifftools.tests.test_numdifftools.TestGradient(methodName='runTest')[source]

Bases: unittest.case.TestCase

testgradient()[source]
class numdifftools.tests.test_numdifftools.TestHessdiag(methodName='runTest')[source]

Bases: unittest.case.TestCase

test_complex()[source]
test_default_step()[source]
test_fixed_step()[source]
class numdifftools.tests.test_numdifftools.TestHessian(methodName='runTest')[source]

Bases: unittest.case.TestCase

test_hessian_cosIx_yI_at_I0_0I()[source]
class numdifftools.tests.test_numdifftools.TestJacobian(methodName='runTest')[source]

Bases: unittest.case.TestCase

testjacobian()[source]
class numdifftools.tests.test_numdifftools.TestRichardson(methodName='runTest')[source]

Bases: unittest.case.TestCase

test_central()[source]
test_complex()[source]
test_forward_backward()[source]
test_order_step_combinations()[source]
class numdifftools.tests.test_numdifftools.TestStepGenerator(methodName='runTest')[source]

Bases: unittest.case.TestCase

test_default_base_step()[source]
test_default_generator()[source]
test_fixed_base_step()[source]

numdifftools.tests.test_numdifftools_docstrings module

numdifftools.tests.test_numdifftools_docstrings.load_tests(loader=None, tests=None, ignore=None)[source]
numdifftools.tests.test_numdifftools_docstrings.suite()[source]

Module contents