next | previous | forward | backward | up | top | index | toc | Macaulay2 web site
Macaulay2Doc :: Constant

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)

See also

Methods that use an object of class Constant :

Fixed objects of class Constant :

For the programmer

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