cyclotomic

A subfield of the complex numbers for exact calculation.

LTS Haskell 22.13:1.1.2
Stackage Nightly 2024-03-14: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.2@sha256:ee2cb8693eb634faa67b36983be0acbdafbcdc12638ce335a32966ed2adb8fb0,2088

Module documentation for 1.1.2

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.