# 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.

241 questions
Filter by
Sorted by
Tagged with
184 views

### Should I Protect function's options

I'm trying to figure out what is the best way to protect symbols within a package (a function's options in particular) so that no other value can be assigned to it. Consider a function ...
196 views

### How to convert a list of variable names into a list of formal symbols?

I have a lists of variable names that include greek letters. names = {"a", "b", "μ", "Σ"} I would like to construct a lists of formal symbols from these such the ...
201 views

### Efficient Search for specific Terms in symbolic Expression

I have a large symbolic expression with six variables a,b,c,d,e,f per term, roughly like this: ...
89 views

### ToString get local name of the symbol

I am using ToString to convert symbols to a string. So my entire code is written assuming ToString[a] will return ...
17 views

### Substitute variable inside manipulate [duplicate]

Consider the following piece of code ...
76 views

### Assign a value to the protected string [duplicate]

How can I assign a value for a symbol composed of a string plus and another string converted from integer? n=3; Symbol["as"<>ToString[n]]=4; So I want to ...
376 views

### 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 ...
243 views

### How to create new custom symbols like \[Wolf]?

In Mathematica, we can often get very special symbols by typing esc ... esc or \[...], such as the Wolf or Mathematica's logo. ...
126 views

### Why is my variable Lambda defined but not the others?

I would like to understand why in the following code, my variable Λ is recognized by the system but not n. In fact for me ...
380 views

### Symbolize Does Not Work in .m Files or What?

I have a .nb (notebook) file which I should convert to a .m (mathematica package) file to run it remotely from command line of a ...
181 views

### Halting Symbol Transformations for Function Arguments

I think the simplest way to state my question is to give an example: x=2; f[x_]:= x; (* Is this possible? *) f[x] (* x *) In other words, is it possible to stop ...
224 views

### How can I define symbols but not have them show up in the front end?

I have a huge set of packages with, arguably, far too many functions. Paring down the number of functions, while a good thing to do eventually, is something I just don't want to spend the time on ...
123 views

44 views

### Solving for a function after replacing and substituting in an expression [duplicate]

I am trying to isolate $X(s)$ in the following expression: ...
89 views

### How do I reassign the ordering of symbols in a polynomial expression?

I have a big polynomial expression, like this: ...
121 views

### How to set a symbol indirectly?

I have a symbol, say x, whose calculated value is a 2nd symbol. How can I set the 2nd symbol to a given value? For example, say the value of x is one of the symbols a, b, or c. If it is a, I want to ...
174 views

### Bug: With[] pattern-variable renaming misses symbols within Except

Bug introduced in 10.1 and fixed in 11.1 Thank you for taking the time to send in this report. It does appear that pattern-variable renaming misses symbols within Except when using With. I will ...
83 views

### How to control variant of digits for a given font?

Is it possible to control style of digits for a given font? In the following example 2nd, 3rd and 4th lines print old style digits. How to get linear digits for these fonts? ...
80 views

### Why can't variables be set to named characters [closed]

Why can't variables be Set to named characters as shortcuts? eg a = \[UpArrow] Gives syntax error: ...
102 views

### How to replace the symbol n in DifferenceRoot

I'd like to employ another symbol (say alpha or k) instead of n in the following (type of) ...
30 views

### Pass list title as argument? [duplicate]

I have a function that works with a list and outputs it. Is it possible to also get the name of the list as an argument? Right now my code is ...
160 views

### How to make a custom function as inbuilt

I have a custom function like following: ...
412 views

### How to declare variables with plus/minus sign as subscript/superscript?

I am pretty new to mathematica, so please forgive me if I ask any stupid questions. I want to create a vector $a^{+}=[a^+_{k-2},a^+_{k-1},a^+_{k},a^+_{k+1},a^+_{k+2}]$ and then do some symbolic ...
60 views

### Define return values for a function that is not of type Boolean

I have a function with more than two possible return values. A simplified example is the following function that classifies vertices of a graph according to their degrees: ...