Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Did you read TFM? There is a Converter class to build your own expressions trees:

If you want to do it by hand you can use

sage: eq = x*sin(x)
sage: eq.op
Operands of x*sin(x)
sage: list(eq.op)
[x, sin(x)]

but I'd recommend you use the Converter