Increase precision of bisection

This commit is contained in:
Nuwan Yapa 2026-04-02 19:22:19 -04:00
parent 3becb0860f
commit 99b4359972
2 changed files with 2 additions and 1 deletions

@ -0,0 +1 @@
Subproject commit 4211227d6a6e437accd33a2c1ebccebc0a8b8db2

View File

@ -117,7 +117,7 @@ end
the other parameters are the same from dirac!(...)."
function findEs(κ, p::Bool, s::system, E_min=850.0, E_max=938.0; tol_digits=8)
func = determinantFunc(κ, p, s)
Es = find_all_zeros(func, E_min, E_max; partitions=20, tol=1/10^tol_digits)
Es = find_all_zeros(func, E_min, E_max; partitions=200, tol=1/10^tol_digits)
return unique(E -> round(E; digits=tol_digits), Es)
end