Expand description
Traits for constants.
Traitsยง
- Infinity
- Provides the constant (positive) Infinity.
- NaN
- Provides the constant NaN.
- Negative
Infinity - Provides the constant -Infinity.
- Negative
One - Provides the constant -1.
- Negative
Zero - Provides the constant -0.
- One
- Provides the constant 1.
- OneHalf
- Provides the constant 1/2.
- Prime
Constant - Provides the prime constant, whose $n$th bit (starting from $n=1$) is true if and only if $n$ is prime.
- Thue
Morse Constant - Provides the Thue-Morse constant, whose bits are the Thue-Morse sequence.
- Two
- Provides the constant 2.
- Zero
- Provides the constant 0.