cyclotomic: The Field of Cyclotomic Numbers

The cyclotomic numbers are complex numbers that can be thought of as the rational numbers extended with the roots of unity. They are represented exactly, enabling exact computations. They contain the Gaussian rationals (complex numbers with rational real and imaginary parts) as well as the square roots of all rational numbers. They also contain the sine and cosine of all rational multiples of pi. The algorithms implemented in this package are taken from the 'Haskell' package 'cyclotomic', whose algorithms are adapted from code by Martin Schoenert and Thomas Breuer in the 'GAP' project (<>). Cyclotomic numbers have applications in number theory, algebraic geometry, algebraic number theory, coding theory, and in the theory of graphs and combinatorics. They have connections to the theory of modular functions and modular curves.

Version: 1.3.0
Imports: intmap, gmp, maybe, memoise, methods, numbers, VeryLargeIntegers
Suggests: testthat (≥ 3.0.0)
Published: 2023-11-02
DOI: 10.32614/CRAN.package.cyclotomic
Author: Stéphane Laurent [aut, cre], Scott N. Walck [cph] (author of the Haskell library 'cyclotomic')
Maintainer: Stéphane Laurent <laurent_step at>
License: GPL-3
NeedsCompilation: no
Materials: README NEWS
CRAN checks: cyclotomic results


Reference manual: cyclotomic.pdf


Package source: cyclotomic_1.3.0.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release (arm64): cyclotomic_1.3.0.tgz, r-oldrel (arm64): cyclotomic_1.3.0.tgz, r-release (x86_64): cyclotomic_1.3.0.tgz, r-oldrel (x86_64): cyclotomic_1.3.0.tgz
Old sources: cyclotomic archive


Please use the canonical form to link to this page.