Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Like this:

sage: expr = x^2
sage: expr.operator() == operator.pow
True
sage: expr.operands()
[x, 2]