File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -286,7 +286,7 @@ function solve_univar(expression, x; dropmultiplicity=true)
286
286
factors_subbed = map (factor -> ssubs (factor, subs), factors)
287
287
arr_roots = []
288
288
289
- if degree < 5 && isequal (expression, factors_subbed[1 ])
289
+ if degree < 5 && isequal (factors_subbed[1 ], wrap (expression) )
290
290
arr_roots = get_roots (expression, x)
291
291
292
292
# multiplicities (repeated roots)
@@ -296,7 +296,7 @@ function solve_univar(expression, x; dropmultiplicity=true)
296
296
append! (arr_roots, og_arr_roots)
297
297
end
298
298
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) ))
300
300
for i in eachindex (factors_subbed)
301
301
if ! any (isequal (x, var) for var in get_variables (factors[i]))
302
302
continue
You can’t perform that action at this time.
0 commit comments