"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "mpmath/__init__.py" between
mpmath-1.0.0.tar.gz and mpmath-1.1.0.tar.gz

About: mpmath is a Python library for arbitrary-precision floating-point arithmetic.

__init__.py  (mpmath-1.0.0):__init__.py  (mpmath-1.1.0)
__version__ = '1.0.0' __version__ = '1.1.0'
from .usertools import monitor, timing from .usertools import monitor, timing
from .ctx_fp import FPContext from .ctx_fp import FPContext
from .ctx_mp import MPContext from .ctx_mp import MPContext
from .ctx_iv import MPIntervalContext from .ctx_iv import MPIntervalContext
fp = FPContext() fp = FPContext()
mp = MPContext() mp = MPContext()
iv = MPIntervalContext() iv = MPIntervalContext()
skipping to change at line 416 skipping to change at line 416
siegelz = mp.siegelz siegelz = mp.siegelz
grampoint = mp.grampoint grampoint = mp.grampoint
zetazero = mp.zetazero zetazero = mp.zetazero
riemannr = mp.riemannr riemannr = mp.riemannr
primepi = mp.primepi primepi = mp.primepi
primepi2 = mp.primepi2 primepi2 = mp.primepi2
primezeta = mp.primezeta primezeta = mp.primezeta
bell = mp.bell bell = mp.bell
polyexp = mp.polyexp polyexp = mp.polyexp
expm1 = mp.expm1 expm1 = mp.expm1
log1p = mp.log1p
powm1 = mp.powm1 powm1 = mp.powm1
unitroots = mp.unitroots unitroots = mp.unitroots
cyclotomic = mp.cyclotomic cyclotomic = mp.cyclotomic
mangoldt = mp.mangoldt mangoldt = mp.mangoldt
secondzeta = mp.secondzeta secondzeta = mp.secondzeta
nzeros = mp.nzeros nzeros = mp.nzeros
backlunds = mp.backlunds backlunds = mp.backlunds
lerchphi = mp.lerchphi lerchphi = mp.lerchphi
stirling1 = mp.stirling1 stirling1 = mp.stirling1
stirling2 = mp.stirling2 stirling2 = mp.stirling2
skipping to change at line 440 skipping to change at line 441
Run all mpmath tests and print output. Run all mpmath tests and print output.
""" """
import os.path import os.path
from inspect import getsourcefile from inspect import getsourcefile
from .tests import runtests as tests from .tests import runtests as tests
testdir = os.path.dirname(os.path.abspath(getsourcefile(tests))) testdir = os.path.dirname(os.path.abspath(getsourcefile(tests)))
importdir = os.path.abspath(testdir + '/../..') importdir = os.path.abspath(testdir + '/../..')
tests.testit(importdir, testdir) tests.testit(importdir, testdir)
def doctests(filter=[]): def doctests(filter=[]):
try:
import psyco; psyco.full()
except ImportError:
pass
import sys import sys
from timeit import default_timer as clock from timeit import default_timer as clock
for i, arg in enumerate(sys.argv): for i, arg in enumerate(sys.argv):
if '__init__.py' in arg: if '__init__.py' in arg:
filter = [sn for sn in sys.argv[i+1:] if not sn.startswith("-")] filter = [sn for sn in sys.argv[i+1:] if not sn.startswith("-")]
break break
import doctest import doctest
globs = globals().copy() globs = globals().copy()
for obj in globs: #sorted(globs.keys()): for obj in globs: #sorted(globs.keys()):
if filter: if filter:
 End of changes. 3 change blocks. 
5 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)