A Numerical Calculation of Arbitrary Integrals of Functions