diff --git a/src/symbol_cache.jl b/src/symbol_cache.jl index 76262b52..95ef4b3d 100644 --- a/src/symbol_cache.jl +++ b/src/symbol_cache.jl @@ -106,7 +106,7 @@ function is_independent_variable(sc::SymbolCache, sym) if symbolic_type(sc.independent_variables) == NotSymbolic() return any(isequal(sym), sc.independent_variables) elseif symbolic_type(sc.independent_variables) == ScalarSymbolic() - return sym == sc.independent_variables + return isequal(sym, sc.independent_variables) else return any(isequal(sym), collect(sc.independent_variables)) end