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)
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
You can’t perform that action at this time.
0 commit comments