First time here? Check out the FAQ!
answered 1 year ago
FWIW :
sage: var("t") t sage: integrate(abs(exp(i*t).demoivre()-1)^2*i*exp(i*t), (t,0,pi)) -I*pi - 4
HTH,