Skip to content

Commit

Permalink
fix: fix SymbolCache with Symbolics variables
Browse files Browse the repository at this point in the history
  • Loading branch information
AayushSabharwal committed Jun 20, 2024
1 parent 4183188 commit 3b21b65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/symbol_cache.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3b21b65

Please sign in to comment.