1: \begin{abstract}
2: The cumulative distribution and quantile functions for the
3: two-sided one sample Kolmogorov-Smirnov probability distributions
4: are used for goodness-of-fit testing.
5: The \CDF\/ is notoriously difficult to explicitly describe and to compute, and for large sample size use of the limiting distribution is an attractive alternative, with its lower computational requirements.
6: No closed form solution for the computation of the quantiles is known.
7: Computing the quantile function by a numeric root-finder for any specific probability may require multiple evaluations of both the \CDF\/ and its derivative. Approximations to both the \CDF\/ and its derivative can be used to reduce the computational demands.
8: We show that the approximations in use inside the open source SciPy python software result in increased computation, not just reduced accuracy, and cause convergence failures in the root-finding.
9: Then we provide alternate algorithms which restore accuracy and efficiency across the whole domain.
10: \keywords{Two-sided Kolmogorov-Smirnov, probability, computation, approximations}
11: \end{abstract}