Questions tagged [symbols]

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.

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.

Everything is an Expression

Head function

342 questions
17
votes
1 answer

How to create symbol whose name has subscript?

I can do Symbol["foobar"] to create a symbol foobar. How to create a symbol $\theta_1$? Symbol[Subscript[\[Theta], 1]] doesn't work.
user13253
  • 8,666
  • 2
  • 42
  • 65
10
votes
0 answers

Unique[] problems

A fresh Mathematica session with $Version "11.0.1 for Microsoft Windows (64-bit) (September 20, 2016)" produces the following results. Names["x*"] (* {} *) Table[Unique["x"], 4] (* {x3, x4, x5, x6} *) Names["x*"] (* {"x3", "x4", "x5", "x6"} *) The…
bbgodfrey
  • 61,439
  • 17
  • 89
  • 156
8
votes
0 answers

Whats the best practice of using subscripts in symbols?

I have stumbled over several issues about subscripted symbols recently. I would like that I can enter subscripted variables with my keyboard and that they are treated as symbols. I would also like to have lists (matrices) of these subscripted…
Gabriel
  • 439
  • 2
  • 8
7
votes
2 answers

Functions, Options and Symbols

In the normal Mathematica language, where no built-in symbols are redefined and no evil things happen, is it a valid assumptions, that no function symbol (Plot, Print, Attributes) is also an option name (like PlotRange, ColorSpace, ImageSize).…
halirutan
  • 112,764
  • 7
  • 263
  • 474
6
votes
1 answer

Go to definition of symbol/variable

Is there any easy way of directly jumping to the definition of a Variable like it is implemented in some good IDEs? Currently I have to search manually (ctrl+f) through the whole workbook to find it somewhere.
Ferio
  • 161
  • 2
5
votes
1 answer

How to get all the symbols `x` for which `f[x]` is defined?

Assume that definitions like the following are in place: f[alpha] = "artichoke"; f[bravo] = "beet"; f[charlie] = "celery"; ... f[yankee] = "yam"; f[zulu] = "zucchini"; etc. (Also assume that all the symbols alpha, bravo, charlie, ..., yankee, zulu…
kjo
  • 11,717
  • 1
  • 30
  • 89
4
votes
2 answers

Using Greek letters with subscripts as symbols

I'd like to use Subscript[ϕ, 1] as a function name: Subscript[ϕ, 1][x_] = C1 + C2*x + C3*Exp[α*x] + C4*Exp[-α*x] But as I use ?Subscript[ϕ, 1] I get the error meassage Information::ssym: Subscript[ϕ, 1] is not a symbol or a valid string pattern.…
Daniel
  • 41
  • 2
4
votes
1 answer

Defining a symbol e that represents plus-minus-one, so that e^2 == 1 and e^3 == e

I have a variable (say, e) that can assume only the values $1$ or $-1$. My calculations are extensive and if I introduce the symbol e to represent these possible values ($1$ or $-1$), I get an output with several powers of e. I can, of course, after…
R. Vieira
  • 43
  • 2
3
votes
0 answers

How do you write the symbol of Sun in Mathematica?

How do you write the symbol of Sun in Mathematica? It is a circle with a small dot in the center (see here)
mattiav27
  • 6,677
  • 3
  • 28
  • 64
3
votes
1 answer

How to customize a double integral symbol?

I use Mathematica as a notebook,but there is no double integral symbol,there is also no triple integral symbol and so on If there is any way to customize a symbol
hadesth
  • 275
  • 1
  • 4
3
votes
2 answers

List names of symbols with its arguments

Before Mathematica 10.0, when there was no Association, the suggested way of using datastructures map, was to abus arguments of undefined symbols: foo["a"] = 1 foo["b"] = 1 I would like to explore the keys of the map foo. Defined symbols can be…
Johu
  • 4,918
  • 16
  • 43
2
votes
1 answer

How to get the meaning of a Mathematica symbol you don't know ?

I would like to know how can I get help on a Mathematica symbol that I don't know ? There is often this case when I read some codes from forum or collegues. Thank you for your help.
Bendesarts
  • 1,099
  • 5
  • 12
2
votes
3 answers

How to create a writable and clearable symbol?

I'm trying to create several symbols and assign values to them. Here's what currently appears to work: Evaluate[Symbol["fdds" <> ToString[10]]] = 1 But there's then another problem: I can't clear it without explicitly saying fdds10, i.e. this…
Ruslan
  • 7,152
  • 1
  • 23
  • 52
2
votes
1 answer

Print iota-like symbol

I want to print the following iota-like symbol: It is not available in the standard special characters. How to do it?
user10181864
  • 304
  • 1
  • 7
2
votes
1 answer

strange output from ToExpression

I want to set constraints to my parameters, e.g., "m", but Mma gives nonsensical output. How could I avoid this phenomenon by using another but "equivalent expression"? Or, is this just in my computer (i.e. a non-reproducible problem)? case 1.…
Laura
  • 61
  • 2
1
2