Quantum.Synthesis.Ring

Rings

class Ring a

Rings with particular elements

Rings with ½

class HalfRing a

Rings with √2

class RootTwoRing a

Rings with 1/√2

class RootHalfRing a

Rings with i

class ComplexRing a

Rings with ω

class OmegaRing a

Rings with particular automorphisms

Rings with complex conjugation

class Adjoint a

Rings with √2-conjugation

class Adjoint2 a

Normed rings

class NormedRing r

Floor and ceiling

class Floor r

Particular rings

The ring ℤ₂ of integers modulo 2

data Z2

The ring D of dyadic fractions

data Dyadic

decompose_dyadic

integer_of_dyadic

The ring ℚ of rational numbers

data Rationals

showsPrec_rational

fromRationals

The ring R[√2]

data RootTwo a

The ring ℤ[√2]

type ZRootTwo

fromZRootTwo

zroottwo_root

The ring D[√2]

type DRootTwo

fromDRootTwo

The field ℚ[√2]

type QRootTwo

fromQRootTwo

The ring R[i]

data Cplx a

The ring ℤ[i] of Gaussian integers

type ZComplex

fromZComplex

The ring D[i]

type DComplex

fromDComplex

The ring ℚ[i] of Gaussian rationals

type QComplex

fromQComplex

The ring D[√2, i]

type DRComplex

fromDRComplex

The ring ℚ[√2, i]

type QRComplex

fromQRComplex

The ring ℂ of complex numbers

type CDouble

type CFloat

The ring R[ω]

data Omega a

omega_real

The ring ℤ[ω]

type ZOmega

fromZOmega

zroottwo_of_zomega

The ring D[ω]

type DOmega

fromDOmega

The field ℚ[ω]

type QOmega

fromQOmega

Conversion to dyadic

class ToDyadic a b

to_dyadic

Real part

class RealPart a b

Rings of integers

class WholePart a b

Common denominators

class DenomExp a

denomexp_decompose

showsPrec_DenomExp

Conversion to ℚ[ω]

class ToQOmega a

Parity

class Parity a

Auxiliary functions

lobit

log2

hibit

intsqrt