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
julia>g(x) = x^3+ x^2+3x + im
julia>roots(g, Complex(-5..5, -5..5))
promotion of types IntervalRootFinding.Compl{Interval{Float64}} and Complex{Int64} failed to change any arguments
The text was updated successfully, but these errors were encountered:
Since we can extract the Jacobian matrix of the pair of real functions (realpart, imagpart) from the complex derivative, it should be enough to provide the complex derivative, or calculate that using automatic differentiation if possible.
From Slack (Mason Protter): AD for complex functions works using ForwardDiff2.jl:
julia>using ForwardDiff2: DI
julia>f(z) = z^2/ (2z +1)
f (generic function with 1 method)
julia> z =1+ im
1+1im
julia>DI(f)(z) ≈2z*(z+1) / (2z +1)^2true
The text was updated successfully, but these errors were encountered: