1 | initial version |
var('term_0 term_1 term_2 term_3')
equ0 = term_0 == term_1 + term_2 + term_3
# use the operands method of expressions
print equ0.rhs().operands()
# subtract third term (the last in the list of operands)
print equ0.rhs() - equ0.rhs().operands()[-1]
# or build expression from list of operands
print sum(equ0.rhs().operands()[:2])