Skip to content

Commit 9b82736

Browse files
committed
add isvariable for Nums
1 parent 8acf774 commit 9b82736

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/utils.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ isdiffeq(eq) = isdifferential(eq.lhs)
225225
isdifference(expr) = istree(expr) && operation(expr) isa Difference
226226
isdifferenceeq(eq) = isdifference(eq.lhs)
227227

228+
isvariable(x::Num) = isvariable(value(x))
228229
function isvariable(x)
229230
x isa Symbolic || return false
230231
p = getparent(x, nothing)

0 commit comments

Comments
 (0)