SymbolName

SymbolName[symbol]

gives the name of the specified symbol.

Details

Examples

open allclose all

Basic Examples  (1)

The name of the symbol x is the string "x":

Properties & Relations  (3)

Symbol and SymbolName are inverses of each other:

Many functions of symbols also accept symbol names as arguments:

SymbolName always gives the short name, without any context:

ToString takes the settings of $Context and $ContextPath into account:

Possible Issues  (1)

SymbolName evaluates its input:

Wolfram Research (1996), SymbolName, Wolfram Language function, https://reference.wolfram.com/language/ref/SymbolName.html.

Text

Wolfram Research (1996), SymbolName, Wolfram Language function, https://reference.wolfram.com/language/ref/SymbolName.html.

CMS

Wolfram Language. 1996. "SymbolName." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/SymbolName.html.

APA

Wolfram Language. (1996). SymbolName. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/SymbolName.html

BibTeX

@misc{reference.wolfram_2024_symbolname, author="Wolfram Research", title="{SymbolName}", year="1996", howpublished="\url{https://reference.wolfram.com/language/ref/SymbolName.html}", note=[Accessed: 22-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_symbolname, organization={Wolfram Research}, title={SymbolName}, year={1996}, url={https://reference.wolfram.com/language/ref/SymbolName.html}, note=[Accessed: 22-November-2024 ]}