Module traits

Source
Expand description

Traits for constants.

Traitsยง

Infinity
Provides the constant (positive) Infinity.
NaN
Provides the constant NaN.
NegativeInfinity
Provides the constant -Infinity.
NegativeOne
Provides the constant -1.
NegativeZero
Provides the constant -0.
One
Provides the constant 1.
OneHalf
Provides the constant 1/2.
PrimeConstant
Provides the prime constant, whose $n$th bit (starting from $n=1$) is true if and only if $n$ is prime.
ThueMorseConstant
Provides the Thue-Morse constant, whose bits are the Thue-Morse sequence.
Two
Provides the constant 2.
Zero
Provides the constant 0.