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

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

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

zetazeros.py  (mpmath-0.19):zetazeros.py  (mpmath-1.0.0)
skipping to change at line 144 skipping to change at line 144
return (T,V, separated) return (T,V, separated)
def separate_my_zero(ctx, my_zero_number, zero_number_block, T, V, prec): def separate_my_zero(ctx, my_zero_number, zero_number_block, T, V, prec):
"""If we know which zero of this block is mine, """If we know which zero of this block is mine,
the function separates the zero""" the function separates the zero"""
variations = 0 variations = 0
v0 = V[0] v0 = V[0]
for k in range(1,len(V)): for k in range(1,len(V)):
v1 = V[k] v1 = V[k]
if v0*v1 < 0: if v0*v1 < 0:
variations +=1 variations +=1
if variations == my_zero_number: if variations == my_zero_number:
k0 = k k0 = k
leftv = v0 leftv = v0
rightv = v1 rightv = v1
v0 = v1 v0 = v1
t1 = T[k0] t1 = T[k0]
t0 = T[k0-1] t0 = T[k0-1]
ctx.prec = prec ctx.prec = prec
wpz = wpzeros(my_zero_number*ctx.log(my_zero_number)) wpz = wpzeros(my_zero_number*ctx.log(my_zero_number))
guard = 4*ctx.mag(my_zero_number) guard = 4*ctx.mag(my_zero_number)
precs = [ctx.prec+4] precs = [ctx.prec+4]
index=0 index=0
while precs[0] > 2*wpz: while precs[0] > 2*wpz:
End of changes. 1 change blocks.
5 lines changed or deleted 5 lines changed or added