"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "mpmath/functions/qfunctions.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.

qfunctions.py  (mpmath-1.0.0):qfunctions.py  (mpmath-1.1.0)
skipping to change at line 126 skipping to change at line 126
return ctx.sum_accurately(terms) return ctx.sum_accurately(terms)
# return ctx.nprod(lambda k: 1-a*q**k, [0,n-1]) # return ctx.nprod(lambda k: 1-a*q**k, [0,n-1])
def factors(): def factors():
k = 0 k = 0
r = ctx.one r = ctx.one
while 1: while 1:
yield 1 - a*r yield 1 - a*r
r *= q r *= q
k += 1 k += 1
if k >= n: if k >= n:
raise StopIteration return
if k > maxterms: if k > maxterms:
raise ctx.NoConvergence raise ctx.NoConvergence
return ctx.mul_accurately(factors) return ctx.mul_accurately(factors)
@defun_wrapped @defun_wrapped
def qgamma(ctx, z, q, **kwargs): def qgamma(ctx, z, q, **kwargs):
r""" r"""
Evaluates the q-gamma function Evaluates the q-gamma function
.. math :: .. math ::
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

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