Skip to content

Commit

Permalink
Fixed tiny bug in derivative
Browse files Browse the repository at this point in the history
  • Loading branch information
mmasdeu committed Nov 29, 2024
1 parent bdc7795 commit 3b6e5fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions darmonpoints/schottky.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ def theta_derivative_naive(
for i in NN:
verbose(f"{i = }")
if i > 2 and max_length == -1:
can_stop = True
can_stop = True
for _, g in self.enumerate_group_elements(i):
ga = act(g, a)
gb = act(g, b)
Expand All @@ -295,7 +295,7 @@ def theta_derivative_naive(
new_ans = (num / den) * second_term
old_ans = new_ans
val = (new_ans / old_ans - 1).valuation()
if can_stop:
if can_stop or i == max_length:
break
new_ans.add_bigoh(val + new_ans.valuation())
if return_value:
Expand Down

0 comments on commit 3b6e5fe

Please sign in to comment.