You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The minimum working example below should always return 1. When using one thread, everything is fine, but as soon as I run the same code with multiple threads, random errors start creeping up.
using IntervalRootFinding
let
results = []
Threads.@threads for iter in 1:1000
f(x) = (x^-1)-1
result = roots(f, 0.0001..10000)
push!(results, result)
end
length(unique(results))
end
I hope you could help identify the issue or find a possible workaround. Thank you for your time!