We consider the computation of the matrix logarithm by using numerical quadrature. The efficiency of numerical quadrature depends on the integrand and the choice of quadrature formula. The Gauss-Legendre quadrature has been conventionally employed; however, the convergence could be slow for ill-conditioned matrices. This effect may stem from the rapid change of the integrand values. To avoid such situations, we focus on the double exponential formula, which has been developed to address integrands with endpoint singularity. In order to utilize the double exponential formula, we must determine a suitable finite integration interval, which provides the required accuracy and efficiency. 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.First, numerical quadrature can make use of the sparseness of A if A is sparse. It is useful when computing the multiplication of the matrix logarithm and a vector log(A)b (b ∈ R n ), which appears in applications such as [8, 6, 7]1, without computing and storing dense matrices. Conversely, the ISS algorithm and the algorithm based on the AGM iteration include the computation of the matrix square root, which means that the calculation involves dense matrices even if A is sparse. The second reason is that numerical quadrature is potentially more favorable for parallel computers because of independent computation of the integrand on each abscissa.Because the integrand in (1) includes matrix inversion, the computational cost of numerical quadrature depends on the number of evaluations of the integrand. Although numerical quadrature is suitable for parallelization, the quadrature formula should be selected carefully to reduce the computational cost and save computational resources.The method conventionally used to compute (1) is the Gauss-Legendre (GL) quadrature. If the spectral radius of A − I is smaller than 1, the GL quadrature, which can be regarded as a rational approximation of log(A), coincides with the Padé approximants of log(A) at I [5, Thm. 4.3]. Therefore, it is natural to use the GL quadrature to reduce the number of abscissas when A is close to I. However, the convergence of the GL quadrature becomes slow when A is not close to I. For example, the convergence in our experiments became slow when A was ill-conditioned which may be explained by rapid changes in the integrand value when it is closer to the endpoint of the interval.In this paper, we consider the double exponential (DE) formula [15], which can be used to compute integrals with singularities at one (or both) of the endpoints. For this reason, the DE formula may be useful in scenarios in which the GL quadrature does not perform well. However, when using the DE formula, a finite interval needs to be selected because the integrand in (1) is transformed into a corresponding function on the infinite interval. This selection is important, i.e., if the finite interval is too narr...