Sympy hangs when performing double integration of piecewise function I am new to sympy. I am trying to integrate two times a simple piecewise function.