Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

expand the expression and then simplify partially (like transforming by hand)

var('n')
expr = ((-1)^n - 2*n -1) / (4*(2*n + 1))
show(expr)
expr2 = expr.expand()
show(expr2)
expr2.op[0] + sum(expr2.op[1:]).simplify_full()