I’m just getting started with SciML and am looking at ModelingToolkit.jl. The macros work:
@variables x y
But in docs there is a macro free usage . The above code should also be equivalent to:
x = Num(Sym{Float64}(:x))
y = Num(Sym{Float64}(:y))
but then I get an error:
ERROR: LoadError: UndefVarError: Sym not defined
What am I missing? Thanks for the help.
EDIT:
Instead use:
x = (Variable{Number}(:x))()
y = (Variable{Number}(:y))()
Found this using @macroexpand