First time here? Check out the FAQ!
answered 2017-04-06 18:49:16 +0100
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()