Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 4999

Mathematica symbols are the ultimate atoms of symbolic data. Every symbol has a unique name, exists in a certain Mathematica context or namespace, and can have a variety of types of values and attributes.

5 votes

List names of symbols with its arguments

The output of ?string is either a structured list of names, if more than one name matches string, or first a list of a single name followed by a list of definitions, which may include OwnValues, DownV …
Michael E2's user avatar
  • 245k
2 votes

Get the symbol name of the function's nth argument

It's rare that the arguments in my function calls are all symbols. Also getArgs[f_[fun___]] :=... seems more likely to be useful. …
Michael E2's user avatar
  • 245k
3 votes
Accepted

Get value of symbol

The problem is that the global symbols hidden in the definition of ab are not localized in the Manipulate. … Manipulate reassigns the a and b that appear in the code passed to Manipulate by Evaluate[Delete[ab, 0]] to localized DynamicModule symbols, which are then remapped to front-end dynamic variables whenever …
Michael E2's user avatar
  • 245k
7 votes
Accepted

What does the syntax C[1][x][y] mean?

It looks like an error. For C[1][x][y] to make sense C[1][x] must represent a single-variable function (and C[1] should represent a function that produces a function). However, in the solution retur …
Michael E2's user avatar
  • 245k
16 votes
Accepted

When is a symbol a Symbol? Is there an easy Mathematica way to test if an object is a symbol...

I'd probably use x_Symbol in a function argument to control evaluation. Otherwise, one might do the following (thanks to @Leonid for pointing out an oversight). If the argument is to be evaluated befo …
Michael E2's user avatar
  • 245k
3 votes
Accepted

Apply Clear puzzle

I'm not sure how you have an unevaluated list of symbols that values, but you can use Unevaluated to keep it that way: foo = 1; bar = 2; Clear @@ Unevaluated@{foo, bar} …
Michael E2's user avatar
  • 245k