On Monday, March 9, 2015 at 3:49:01 PM UTC+1, projetmbc wrote:
>
> The string trick would do the job, but maybe the tree method would be 
> nicer. How can I walk in the tree ? Is the tree the one of simply or 
> another one ?
>

Any symbolic expression (part) has 0+ operators and 0+ operands.
See the resp. member functions of Expression. The operands point to 
children parts. 

As to ready made tree walks there is one on GinaC level, which is
not accessible immediately, and expression_conversion.py has classes
that copy the tree while walking. There is also Expression._dbgprinttree()
which could in principle be parsed.

Regards,

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to