-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
roots cannot handle functions that return intervals #77
Comments
Do you mean something like that ? julia> g(x::Interval) = x^2 - 2
g (generic function with 1 method)
julia> roots(g, -2..2)
ERROR: MethodError: no method matching g(::ForwardDiff.Dual{ForwardDiff.Tag{#g,IntervalArithmetic.Interval{Float64}},IntervalArithmetic.Interval{Float64},1}) |
I meant something like
|
Is there an use case where this makes sense ? If the return value of |
I've read somewhere that such cases occur and are of interest. Yet, in my opinion, we should perhaps document the current limitations and eventually add that functionality. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Also seems to be true of newton1d.
cc @eeshan9815
The text was updated successfully, but these errors were encountered: