Skip to content

Commit 62d8d0e

Browse files
committed
small fix
1 parent a94771b commit 62d8d0e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/solver/main.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ function solve_univar(expression, x; dropmultiplicity=true)
286286
factors_subbed = map(factor -> ssubs(factor, subs), factors)
287287
arr_roots = []
288288

289-
if degree < 5 && isequal(expression, factors_subbed[1])
289+
if degree < 5 && isequal(factors_subbed[1], wrap(expression))
290290
arr_roots = get_roots(expression, x)
291291

292292
# multiplicities (repeated roots)
@@ -296,7 +296,7 @@ function solve_univar(expression, x; dropmultiplicity=true)
296296
append!(arr_roots, og_arr_roots)
297297
end
298298
end
299-
elseif length(factors) > 1 || (length(factors) == 1 && !isequal(factors_subbed[1], expression))
299+
elseif length(factors) > 1 || (length(factors) == 1 && !isequal(factors_subbed[1], wrap(expression)))
300300
for i in eachindex(factors_subbed)
301301
if !any(isequal(x, var) for var in get_variables(factors[i]))
302302
continue

0 commit comments

Comments
 (0)