-
-
Notifications
You must be signed in to change notification settings - Fork 54
Description
Is your feature request related to a problem? Please describe.
I want to find all the roots of a polynomial function
I find very convenient your wrapper around HomotopyContinuation, but at the moment only returns real solutions
realsols = HC.results(orig_sol; only_real = true) |
even when Homotopy Continuation has found the complex solutions already.
orig_sol = HC.solve(hcsys; alg.kwargs..., kwargs...) |
Right now you even have a test that checks for real solutions only
@testset "no real solutions" begin |
Describe the solution you’d like
I would like to pass a kwarg like allow_complex=true
and get complex solutions if wanted. I think it will be relatively simple since the complex roots are calculated by Homotopy Continuation either way.
Describe alternatives you’ve considered
Right now I know you have the Muller method that finds complex roots:
@testset "Complex roots" begin |
but I want to find all the roots. That is why at the moment I am using your homotopy_continuation_preprocessing
function
function homotopy_continuation_preprocessing( |
HomotopyContinuation.solve
Additional context
NonlinearSolve v4.10.0
NonlinearSolveHomotopyContinuation v0.1.5