Small updates

master
pbrod 9 years ago
parent 9964d2437b
commit b7ce91334e

@ -35,7 +35,8 @@ before_install:
- sudo apt-get install gfortran
# Install packages
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 coveralls
- pip install codecov

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

Loading…
Cancel
Save