Skip to content

Commit

Permalink
Fix bug in tracking code
Browse files Browse the repository at this point in the history
  • Loading branch information
aragilar committed Nov 15, 2018
1 parent a52f18a commit ce03ad3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/root_solver/_tracking.py
Expand Up @@ -10,7 +10,7 @@ def get_closest_root(target, roots):
Find the closest root to a specific value. Supports complex numbers.
"""
diff = target - roots
norm = diff * diff.conj
norm = diff * diff.conj()
return roots[argmin(norm)]


Expand Down

0 comments on commit ce03ad3

Please sign in to comment.