Hi everyone. New to symbolic algebra in Julia and have a question about getting arguments from Symbolic.jl (using v. 6.41.0) expression. Is there any reason for the following differing formatting behavior in `Symbolics.arguments
@variables x
f1 = cos(x)
f2 = cos(x) + sin(x)
In: Symbolics.arguments(Symbolics.value(f1))
Out: 1-element SymbolicUtils.SmallVec{Any, Vector{Any}}:
x
In: Symbolics.arguments(Symbolics.value(f2))
Out: 2-element SymbolicUtils.SmallVec{Any, Vector{Any}}:
cos(x)
sin(x)
Might be misunderstanding but the result for f1 is what I would expect from Symbolics.get_variables
. What is the simplest way of obtaining cos(x)
from Symbolics.arguments(Symbolics.value(f1))
?
Thanks!