Application of mixed quadrature rules for numerical integration of real and complex analytic functions