cyclotomic

A subfield of the complex numbers for exact calculation.

Version on this page:1.1.1
LTS Haskell 22.37:1.1.2
Stackage Nightly 2024-10-07:1.1.2
Latest on Hackage:1.1.2

See all snapshots cyclotomic appears in

GPL-3.0-only licensed by Scott N. Walck
Maintained by Scott N. Walck
This version can be pinned in stack with:cyclotomic-1.1.1@sha256:9324ad3e0acea99b6ae052ffae8314a490af26f76cefef162ce334cfe5327fa3,2088

Module documentation for 1.1.1

The cyclotomic numbers are a subset of the complex numbers that are represented exactly, enabling exact computations and equality comparisons. They contain the Gaussian rationals (complex numbers of the form p + q i with p and q rational), as well as all complex roots of unity. The cyclotomic numbers contain the square roots of all rational numbers. They contain the sine and cosine of all rational multiples of pi. The cyclotomic numbers form a field, being closed under addition, subtraction, mutiplication, and division.