arXiv · 2412.19929
Transcendental Functions on Continued Fractions
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.
Explore related subjects
Keep this discovery
Explore connections, maps & timelines
Michael J. Collins. 2025-08-18. Transcendental Functions on Continued Fractions. https://arxiv.org/abs/2412.19929
Cite the original work for its findings. Save a collection to share your selection of sources.