Functional access to symbols

Use only in the MuPAD Notebook Interface.

This functionality does not run in MATLAB.




Symbol::new(symname) or simply Symbol(symname) creates the typesetting symbol corresponding to symname.

The typesetting symbols can be accessed in two different ways: Most symbols can be input by typing Symbol::symname, where symname is taken from the lists in the introduction. For some symbol names (such as not or I), this is not possible in the MuPAD® language. What is possible in any case is to invoke Symbol as a function, taking a string representation as its argument, as in Symbol("not").


Example 1

The symbols accessed via Symbol can be used like ordinary identifiers:

Symbol::heartsuit in 
   {Symbol::heartsuit, Symbol::spades}

expand((Symbol::alpha + Symbol::beta)^4);

Some symbol names are MuPAD keywords and can not be accessed via slot calls. They can be given as function calls:

Symbol("minus"), Symbol("div"), Symbol("in"), 
Symbol("and"), Symbol("subset"), Symbol("NIL"), 
Symbol("UNKNOWN"), Symbol("FAIL"), Symbol("E"), 
Symbol("I"), Symbol("not")



A symbol name: a string

Return Values


See Also

MuPAD Functions

Was this topic helpful?