# Constant

## Description

A constant is a symbolic entity that can be approximated by a real or complex number to any desired accuracy. It is converted to a numeric value of the correct precision, when necessary.

 i1 : pi o1 = pi o1 : Constant i2 : +pi o2 = 3.14159265358979 o2 : RR (of precision 53) i3 : numeric_100 pi o3 = 3.14159265358979323846264338328 o3 : RR (of precision 100) i4 : 2. * pi o4 = 6.28318530717959 o4 : RR (of precision 53) i5 : 2p100 * pi o5 = 6.28318530717958647692528676656 o5 : RR (of precision 100) i6 : exp(2*pi*ii/17) o6 = .932472229404356+.361241666187153*ii o6 : CC (of precision 53)

## Methods that use an object of class Constant :

• Constant !, see ! -- factorial
• Constant * Constant, see * -- a binary operator, usually used for multiplication
• Constant * InexactNumber, see * -- a binary operator, usually used for multiplication
• Constant * Number, see * -- a binary operator, usually used for multiplication
• InexactNumber * Constant, see * -- a binary operator, usually used for multiplication
• Number * Constant, see * -- a binary operator, usually used for multiplication
• + Constant, see + -- a unary or binary operator, usually used for addition
• Constant + Constant, see + -- a unary or binary operator, usually used for addition
• Constant + InexactNumber, see + -- a unary or binary operator, usually used for addition
• Constant + Number, see + -- a unary or binary operator, usually used for addition
• InexactNumber + Constant, see + -- a unary or binary operator, usually used for addition
• Number + Constant, see + -- a unary or binary operator, usually used for addition
• - Constant, see - -- a unary or binary operator, usually used for negation or subtraction
• Constant - Constant, see - -- a unary or binary operator, usually used for negation or subtraction
• Constant - InexactNumber, see - -- a unary or binary operator, usually used for negation or subtraction
• Constant - Number, see - -- a unary or binary operator, usually used for negation or subtraction
• InexactNumber - Constant, see - -- a unary or binary operator, usually used for negation or subtraction
• Number - Constant, see - -- a unary or binary operator, usually used for negation or subtraction
• Constant * RingElement
• Constant + RingElement
• Constant - RingElement
• Constant / Constant
• Constant / InexactNumber
• Constant / Number
• Constant / RingElement
• Constant == Constant
• Constant == InexactNumber
• Constant ^ Constant
• Constant ^ InexactNumber
• Constant ^ Number
• InexactNumber / Constant
• InexactNumber == Constant
• InexactNumber ^ Constant
• Number / Constant
• Number ^ Constant
• RingElement * Constant
• RingElement + Constant
• RingElement - Constant
• RingElement / Constant
• Constant * InfiniteNumber (missing documentation)
• Constant + InfiniteNumber (missing documentation)
• Constant - InfiniteNumber (missing documentation)
• Constant / InfiniteNumber (missing documentation)
• Constant // InfiniteNumber (missing documentation)
• Constant Number (missing documentation)
• exp(Constant), see exp -- exponential function
• InfiniteNumber * Constant (missing documentation)
• InfiniteNumber + Constant (missing documentation)
• InfiniteNumber - Constant (missing documentation)
• InfiniteNumber / Constant (missing documentation)
• InfiniteNumber // Constant (missing documentation)
• Constant ^ Ring, see lift -- lift to another ring
• Constant ^ RingFamily, see lift -- lift to another ring
• Number Constant (missing documentation)
• numeric(Constant), see numeric -- convert to floating point
• numeric(ZZ,Constant), see numeric -- convert to floating point

## For the programmer

The object Constant is a type, with ancestor classes BasicList < Thing.