|
SOLUTIONS
|
BUILT-IN MATHEMATICA SYMBOL
TagSet 
![]()
assigns rhs to be the value of lhs, and associates the assignment with the symbol f.
DetailsDetails
- TagSet defines upvalues or downvalues as appropriate.
- The symbol f in
must appear in lhs as the head of lhs, the head of the head, one of the elements of lhs, or the head of one of the elements. - A common case is
. - You can see all the rules associated with a particular symbol by typing ?symbol.
- If f appears several times in lhs, then
associates the assignment with each occurrence. - When it appears in unevaluated symbolic form, TagSet is treated as a scoping construct so that variables in nested occurrences are renamed if necessary.
ExamplesExamplesopen allclose all
Basic Examples (1)Basic Examples (1)
Define a symbolic property of a symbol:
| In[1]:= |
| Out[1]= |
New in 1
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »
