Small updates

master
pbrod 9 years ago
parent 9964d2437b
commit b7ce91334e

@ -35,7 +35,8 @@ before_install:
- sudo apt-get install gfortran - sudo apt-get install gfortran
# Install packages # Install packages
install: install:
- conda install --yes python=$TRAVIS_PYTHON_VERSION numpy scipy pytest matplotlib nose pytest-pep8 pytest-cov mpmath pil - conda install --yes python=$TRAVIS_PYTHON_VERSION numpy scipy pytest matplotlib nose pytest-pep8 pytest-cov mpmath
- pip install pil
- pip install numdifftools - pip install numdifftools
- pip install coveralls - pip install coveralls
- pip install codecov - pip install codecov

@ -156,8 +156,9 @@ def romberg(fun, a, b, releps=1e-3, abseps=1e-3):
------- -------
>>> import numpy as np >>> import numpy as np
>>> [q,err] = romberg(np.sqrt,0,10,0,1e-4) >>> [q,err] = romberg(np.sqrt,0,10,0,1e-4)
>>> np.allclose([q,err], >>> np.allclose(q, 21.08185107)
... [ 21.08185107, 6.61635466e-05]) True
>>> err < 1e-4
True True
''' '''
h = b - a h = b - a

Loading…
Cancel
Save