Open n0rbed opened 6 days ago
This is resulting in some limitations such as:
julia> RootFinding.solve(x^3 + x*sqrt(complex(-2)) + 2, x)
ERROR: AssertionError: Coefficients must be integer or rational
update:
julia> RootFinding.filter_poly(poly, x)
(Dict{Any, Any}(I0 => im, c1 => 1.4142135623730951), 2 + I0*c1*x + x^3)
julia> RootFinding.filter_poly(im*x + Symbolics.term(sqrt, 2), x)
(Dict{Any, Any}(c1 => (im*x) + sqrt(2)), c1)
Second case is dependent on Symbolics.get_variables. It can not see that the input polynomial has x in the equation.
Output should be:
x^3 + c1I0x + 2
Output should be:
I0x + c1