SymbolicUtils.jl icon indicating copy to clipboard operation
SymbolicUtils.jl copied to clipboard

make `@syms` support functions with a variable number of arguments

Open matthias314 opened this issue 3 years ago • 0 comments

In Symbolics.jl one can say @variables f(..) to define a function that accepts a variable number of arguments. In SymbolicUtils.jl the analogous macro call using @syms defines a function with a single argument:

julia> typeof(@syms f(..))
Tuple{SymbolicUtils.Sym{SymbolicUtils.FnType{Tuple{Number}, Number}, Nothing}}

One can get a function with a variable number of arguments by saying something like

f = SymbolicUtils.Sym{SymbolicUtils.FnType{Tuple, Number}}(:f)

It would be great if one could use @syms f(..) instead.

matthias314 avatar Jul 30 '21 20:07 matthias314