At least so: `res += float([1,-1][n mod 2])/(2.0*float(n)+1.0)`.

Reply via email to