Libraries.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 rationals

data Dyadic

decompose_dyadic

integer_of_dyadic

fromDyadic

The ring ℚ of rational numbers

data Rationals

showsPrec_rational

fromRationals

The ring R[√2]

data RootTwo a

The ring ℤ[√2]

type DInteger

fromDInteger

The ring ℤ[1/√2]

type DReal

fromDReal

The field ℚ[√2]

type EReal

fromEReal

The ring R[i]

data Cplx a

The ring ℤ[i] of Gaussian integers

type ZComplex

fromZComplex

The ring ℤ[1/√2, i]

type DComplex

fromDComplex

The ring ℚ[√2, i]

type EComplex

fromEComplex

The ring ℂ of complex numbers

type CDouble

type CFloat

The ring R[ω]

data Omega a

omega_real

The ring ℤ[ω]

type ZOmega

fromZOmega

dinteger_of_zomega

The ring D[ω]

type DOmega

fromDOmega

The field ℚ[ω]

type QOmega

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 EComplex

class ToEComplex a

Parity

class Parity a

Auxiliary functions

lobit

log2

intsqrt