Calculation of an integral