Infinite integrals with the weighted averages algorithm