1: \begin{abstract}
2: We consider the computation of the matrix logarithm by using numerical quadrature.
3: The efficiency of numerical quadrature depends on the integrand and the choice of quadrature formula.
4: The Gauss--Legendre quadrature has been conventionally employed;
5: however, the convergence could be slow for ill-conditioned matrices.
6: This effect may stem from the rapid change of the integrand values.
7: To avoid such situations, we focus on the double exponential formula, which has been developed to address integrands with endpoint singularity.
8: In order to utilize the double exponential formula, we must determine a suitable finite integration interval, which provides the required accuracy and efficiency.
9: In this paper, we present a method for selecting a suitable finite interval based on an error analysis as well as two algorithms, and one of these algorithms is an adaptive quadrature algorithm.
10: \end{abstract}
11: