Macaulay2 » Documentation
Packages » Macaulay2Doc » analytic functions » Constant
next | previous | forward | backward | up | index | toc

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.141592653589793

o2 : RR (of precision 53)
i3 : numeric_100 pi

o3 = 3.141592653589793238462643383279

o3 : RR (of precision 100)
i4 : 2. * pi

o4 = 6.283185307179586

o4 : RR (of precision 53)
i5 : 2p100 * pi

o5 = 6.283185307179586476925286766559

o5 : RR (of precision 100)
i6 : exp(2*pi*ii/17)

o6 = .9324722294043558+.3612416661871529*ii

o6 : CC (of precision 53)

See also

Menu

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
  • Constant + RingElement -- 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
  • RingElement + 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
  • Constant - RingElement -- 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
  • RingElement - Constant -- see - -- a unary or binary operator, usually used for negation or subtraction
  • abs(Constant) -- see abs -- absolute value function
  • conjugate(Constant) -- see conjugate -- complex conjugate
  • floor(Constant) -- see floor(Number) -- floor function
  • isFinite(Constant) -- see isFinite -- whether a number is finite
  • isInfinite(Constant) -- see isInfinite -- whether a number is infinite
  • isReal(Constant) -- see isReal -- whether a number is real
  • numeric(Constant) -- see numeric -- convert to floating point
  • numeric(InfiniteNumber,Constant) -- see numeric -- convert to floating point
  • numeric(ZZ,Constant) -- see numeric -- convert to floating point
  • numericInterval(Constant) -- see numericInterval -- convert a constant to an interval
  • numericInterval(ZZ,Constant) -- see numericInterval -- convert a constant to an interval
  • promote(Constant,type of InexactNumber') (missing documentation)
  • promote(Constant,type of RingElement) (missing documentation)
  • ring(Constant) (missing documentation)
  • sign(Constant) -- see sign -- sign (signum) function

Protected objects of class Constant:

For the programmer

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


The source of this document is in Macaulay2Doc/ov_analytic_functions.m2:101:0.