SymEngine::Expression ex = SymEngine::Expression("5*x+sqrt(5/4)+1/(y-8)");
--
You received this message because you are subscribed to the Google Groups "symengine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to symengine+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/symengine/c0122e6c-67be-4948-ab56-dbab55237e70%40googlegroups.com.
IsuruIt'll give you a, std::set<RCP<const Basic>> and you can convert it into any form you like.Hi,You need to use free_symbols as in https://github.com/symengine/symengine/blob/3c274630c70c242442c051d3db3fe96cf156be2d/symengine/visitor.h#L233
On Tue, May 26, 2020 at 3:37 PM Panagiotis Stavropoulos <peter...@gmail.com> wrote:
--Hello,I am working in C++. I am trying to get (any) STL container of the variables of a SymEngine::Expression. Lets say for a silly example somewhere in main I have:
SymEngine::Expression ex = SymEngine::Expression("5*x+sqrt(5/4)+1/(y-8)");
I cannot figure out what function to call to get the the variables x and y out of the ex and store them in a container. Any help is appriciated.
You received this message because you are subscribed to the Google Groups "symengine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to syme...@googlegroups.com.