Is there a way to retrieve differential variables from an expression using Symbolics.jl? For example, if I use get_variables
on Differential(t)(x(t))
it only returns x(t)
, but I need to get the differential part as well so I can substitute it for diff2term(Differential(t)(x(t))
.
Open an issue. I’m afraid the answer is, yes but it’s harder than it needs to be so let’s just make a function and document it
So far I haven’t found a good string-based method for identifying every differential variable in an expression. I think that a temporary solution will involve using eval(Meta.parse()). My main issue is just that I’ve found it pretty difficult to build a general function that recognizes every differential term in the string of an expression. For specific cases / known variable names there isn’t much of an issue.