# 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
• abs(Constant) (missing documentation)
• acosh(Constant) (missing documentation)
• acot(Constant) (missing documentation)
• "acoth(Constant)" -- see acoth -- compute the hyperbolic arctangent of a number
• asinh(Constant) (missing documentation)
• "atanh(Constant)" -- see atanh -- compute the hyperbolic arctangent of a number
• "BesselJ(ZZ,Constant)" -- see BesselJ -- Bessel function of the first kind
• "BesselY(ZZ,Constant)" -- see BesselY -- Bessel function of the second kind
• "binomial(Constant,Constant)" -- see binomial -- binomial coefficient
• "binomial(Constant,Number)" -- see binomial -- binomial coefficient
• "binomial(Number,Constant)" -- see binomial -- binomial coefficient
• "ceiling(Constant)" -- see ceiling(Number) -- ceiling function
• "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)
• Constant ? Constant (missing documentation)
• Constant ? Number (missing documentation)
• "floor(Constant)" -- see floor(Number) -- floor function
• InexactNumber ? Constant (missing documentation)
• InfiniteNumber * Constant (missing documentation)
• InfiniteNumber + Constant (missing documentation)
• InfiniteNumber - Constant (missing documentation)
• InfiniteNumber / Constant (missing documentation)
• InfiniteNumber // Constant (missing documentation)
• "integrate(Function,Constant,Constant)" -- see integrate -- numerical integration
• "integrate(Function,Constant,InfiniteNumber)" -- see integrate -- numerical integration
• "integrate(Function,Constant,Number)" -- see integrate -- numerical integration
• "integrate(Function,InfiniteNumber,Constant)" -- see integrate -- numerical integration
• "integrate(Function,Number,Constant)" -- see integrate -- numerical integration
• isc(Constant) (missing documentation)
• "isInfinite(Constant)" -- see isInfinite -- whether a number is infinite
• "isReal(Constant)" -- see isReal -- whether a number is real
• "Constant ^ Ring" -- see lift -- lift to another ring
• "Constant ^ RingFamily" -- see lift -- lift to another ring
• "lngamma(Constant)" -- see lngamma -- logarithm of the Gamma function
• Number == Constant (missing documentation)
• Number ? Constant (missing documentation)
• "numeric(Constant)" -- see numeric -- convert to floating point
• "numeric(ZZ,Constant)" -- see numeric -- convert to floating point
• "numericInterval(Constant)" -- see numericInterval -- converts to an interval
• "numericInterval(ZZ,Constant)" -- see numericInterval -- converts to an interval
• round(Constant) (missing documentation)
• "truncate(Constant)" -- see truncate(Number) -- round a number toward zero

## For the programmer

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