> sage: var('x,y')
> (x, y)
> sage: t = x^2 + y^2
> sage: type(t)
> <class 'sage.calculus.calculus.SymbolicArithmetic'>
> sage: t._operator
> <built-in function add>
> sage: t._operands
> [x^2, y^2]
> sage: t._operands[0]
> x^2It looks like you can access the expression as a tree of binary operators and their operands this way. However, the order of the operands in the tree does not always match the order when the display the expression. It seems to be related somehow to how you originally entered and then formed the expression. --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---
