Abstract:With trapezoidal algorithm, Simpson algorithm, Romberg integration algorithm, adaptive error integration, Gamma functionnumerical integral calculation is made, which is also applied in optimization calculation of hydrological frequency parameters. Andthen intelligent algorithm is used for optimization. The ideal data and observed sequences show that the a new adaptive error algo -rithm has the advantage of fast calculation and high accuracy, so as to be applied to the engineering practice.