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

### Source code changes of the file "mpmath/functions/qfunctions.py" betweenmpmath-0.18.tar.gz and mpmath-0.19.tar.gz

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

qfunctions.py  (mpmath-0.18):qfunctions.py  (mpmath-0.19)
skipping to change at line 82 skipping to change at line 82
0.2887880950866024212788997 0.2887880950866024212788997
>>> root(3,-2)*root(q,-24)*jtheta(2,pi/6,root(q,6)) >>> root(3,-2)*root(q,-24)*jtheta(2,pi/6,root(q,6))
0.2887880950866024212788997 0.2887880950866024212788997
""" """
a = ctx.convert(a) a = ctx.convert(a)
if n is None: if n is None:
n = ctx.inf n = ctx.inf
else: else:
n = ctx.convert(n) n = ctx.convert(n)
n if n < 0:
raise ValueError("n cannot be negative")
if q is None: if q is None:
q = a q = a
else: else:
q = ctx.convert(q) q = ctx.convert(q)
if n == 0: if n == 0:
return ctx.one + 0*(a+q) return ctx.one + 0*(a+q)
infinite = (n == ctx.inf) infinite = (n == ctx.inf)
same = (a == q) same = (a == q)
if infinite: if infinite:
if abs(q) >= 1: if abs(q) >= 1:
End of changes. 1 change blocks.
1 lines changed or deleted 2 lines changed or added