Transcendental Functions on Continued Fractions
Combinatorics
2025-08-20 v2 Number Theory
Abstract
Gosper developed an algorithm for performing arithmetic operations on continued fractions (CFs), getting a CF as the result. Straightforward implementation of the algorithm leads to infinite loops on some inputs. Here we present a modified version of the arithmetic algorithm and prove that it avoids all difficulties with infinite loops. We then combine CF arithmetic with the spigot algorithm to compute the CF expansions of exponential, logarithmic, and trigonometric functions of CFs. We have implemented these algorithms in Haskell.
Cite
@article{arxiv.2412.19929,
title = {Transcendental Functions on Continued Fractions},
author = {Michael J. Collins},
journal= {arXiv preprint arXiv:2412.19929},
year = {2025}
}