From 3b21b6509e7704dc641e44ffa57f5a0239be8cf2 Mon Sep 17 00:00:00 2001 From: Aayush Sabharwal Date: Thu, 20 Jun 2024 12:52:04 +0530 Subject: [PATCH] fix: fix SymbolCache with Symbolics variables --- src/symbol_cache.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/symbol_cache.jl b/src/symbol_cache.jl index 76262b5..95ef4b3 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