Symbolical computation like SymPy.
Base class common to all types defined in the algebraic.constant
module.
Creates an algebraic Integer constant.
>>> fifteen = algebraic.constant.Integer(15)
>>> fifteen
fifteen
>>> fifteen.value
15
Creates an algebraic Rational constant.
>>> half = algebraic.constant.Rational(1, 2)
>>> half
half
>>> half.value
1/2
Creates an algebraic Real constant.
>>> pi = algebraic.constant.Real(3.14)
>>> pi
pi
>>> pi.value
3.14
Creates an algebraic Complex constant.
>>> root = algebraic.constant.Complex(1.0 + 2.0j)
>>> root
root
>>> root.value
1.0 + 2.0j