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

Symbol -- the class of all symbols

Description

Symbols are entered as an alphabetic character followed by a sequence of alphanumeric characters; case is significant. The single symbol character ' is regarded as alphabetic, so that symbols such as x' may be used.

Symbols are used as names for values to be preserved, as indeterminates in polynomial rings, and as keys in hash tables. They may have global scope, meaning they are visible from every line of code, or local scope, with visibility restricted to a single file or function body.

i1 : x

o1 = x

o1 : Symbol
i2 : ab12

o2 = ab12

o2 : Symbol

See also

Types of symbol :

Functions and methods returning a symbol :

Methods that use a symbol :

Fixed objects of class Symbol :

For the programmer

The object Symbol is a type, with ancestor class Thing.