Skip to content

Commit 6fc4813

Browse files
committed
Add issymbollike overload
1 parent c107932 commit 6fc4813

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/ModelingToolkit.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
module ModelingToolkit
22

3-
using DiffEqBase, Distributed
3+
using DiffEqBase, SciMLBase
4+
using Distributed
45
using StaticArrays, LinearAlgebra, SparseArrays, LabelledArrays
56
using Latexify, Unitful, ArrayInterface
67
using MacroTools
@@ -55,6 +56,8 @@ Num(x::Num) = x # ideally this should never be called
5556
value(x) = x
5657
value(x::Num) = x.val
5758

59+
SciMLBase.issymbollike(::Num) = true
60+
SciMLBase.issymbollike(::SymbolicUtils.Symbolic) = true
5861

5962
SymbolicUtils.@number_methods(Num,
6063
Num(f(value(a))),

0 commit comments

Comments
 (0)