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

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

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

gammazeta.py  (mpmath-0.18):gammazeta.py  (mpmath-0.19)
skipping to change at line 1398 skipping to change at line 1398
while not n % p: while not n % p:
n //= p n //= p
m += 1 m += 1
mult[i] = m mult[i] = m
sieve_cache = sieve sieve_cache = sieve
primes_cache = primes primes_cache = primes
mult_cache = mult mult_cache = mult
return sieve, primes, mult return sieve, primes, mult
def zetasum_sieved(critical_line, sre, sim, a, n, wp): def zetasum_sieved(critical_line, sre, sim, a, n, wp):
a if a < 1:
raise ValueError("a cannot be less than 1")
sieve, primes, mult = primesieve(a+n) sieve, primes, mult = primesieve(a+n)
basic_powers = {} basic_powers = {}
one = MPZ_ONE << wp one = MPZ_ONE << wp
one_2wp = MPZ_ONE << (2*wp) one_2wp = MPZ_ONE << (2*wp)
wp2 = wp+wp wp2 = wp+wp
ln2 = ln2_fixed(wp) ln2 = ln2_fixed(wp)
pi2 = pi_fixed(wp-1) pi2 = pi_fixed(wp-1)
for p in primes: for p in primes:
if p*2 > a+n: if p*2 > a+n:
break break
End of changes. 1 change blocks.
1 lines changed or deleted 2 lines changed or added