Determine convergence of improper integrals (#573)