Infinite Series and Improper Integrals: A Dual Approach.