## "Fossies" - the Fresh Open Source Software Archive

### Source code changes of the file "mpmath/calculus/extrapolation.py" betweenmpmath-1.0.0.tar.gz and mpmath-1.1.0.tar.gz

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

extrapolation.py  (mpmath-1.0.0):extrapolation.py  (mpmath-1.1.0)
skipping to change at line 728 skipping to change at line 728
def levin(ctx, method = "levin", variant = "u"): def levin(ctx, method = "levin", variant = "u"):
L = levin_class(method = method, variant = variant) L = levin_class(method = method, variant = variant)
L.ctx = ctx L.ctx = ctx
return L return L
levin.__doc__ = levin_class.__doc__ levin.__doc__ = levin_class.__doc__
defun(levin) defun(levin)
class cohen_alt_class: class cohen_alt_class:
# cohen_alt: Copyright 2013 Timo Hartmann (thartmann15 at gmail.com) # cohen_alt: Copyright 2013 Timo Hartmann (thartmann15 at gmail.com)
""" r"""
This interface implements the convergence acceleration of alternating series This interface implements the convergence acceleration of alternating series
as described in H. Cohen, F.R. Villegas, D. Zagier - "Convergence Accelerati on as described in H. Cohen, F.R. Villegas, D. Zagier - "Convergence Accelerati on
of Alternating Series". This series transformation works only well if the of Alternating Series". This series transformation works only well if the
individual terms of the series have an alternating sign. It belongs to the individual terms of the series have an alternating sign. It belongs to the
class of linear series transformations (in contrast to the Shanks/Wynn-epsil on class of linear series transformations (in contrast to the Shanks/Wynn-epsil on
or Levin transform). This series transformation is also able to sum some typ es or Levin transform). This series transformation is also able to sum some typ es
of divergent series. See the paper under which conditions this resummation i s of divergent series. See the paper under which conditions this resummation i s
mathematical sound. mathematical sound.
Let *A* be the series we want to sum: Let *A* be the series we want to sum:
End of changes. 1 change blocks.
1 lines changed or deleted 1 lines changed or added