arXiv++ Combinatorics

Browse math.CO papers from arXiv

Transcendental Functions on Continued Fractions

Published: 2024-12-27 | Updated: 2025-08-18

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.

BibTeX

Loading...