Increase precision of bisection
This commit is contained in:
parent
3becb0860f
commit
99b4359972
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 4211227d6a6e437accd33a2c1ebccebc0a8b8db2
|
||||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue