prog::getname -- the name of an
object
Introductionprog::getname(object) returns the name of
the MuPAD object object.
Call(s)prog::getname(object)
Parametersobject |
- | any MuPAD object |
Returnsthe name as string
Related
Functionsop, print, expr2text, text2expr, info
Detailsprog::getname returns the name of any MuPAD
object. The return value is a string, irrespective of the type of the
input."(noname)" is returned.expr2text(object) is returned as
name.
Example
1My own name:
>> prog::getname(prog::getname)
"prog::getname"
The name of a Domain:
>> prog::getname(Dom::ExpressionField())
"Dom::ExpressionField()"
The ``name'' of an arbitrary MuPAD object:
>> prog::getname(1)
"1"
>> prog::getname(a + 2*b)
"a + 2*b"