Skip to main content

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.

Filter by
Sorted by
Tagged with
6 votes
1 answer
226 views

What is the difference between Clear and Remove?

I assume that there is difference between the commands Clear and Remove. But it seems to me that I am not aware of any caveats ...
MathArt's user avatar
  • 233
3 votes
0 answers
39 views

Is this list of Formal Symbols complete? Which versions have unprotected Formal Symbols?

Formal Symbols are protected against being assigned values, making them handy for avoiding name collisions for things like fit parameters and pattern matching. Because formal symbols (and others) like ...
Tapiocaweasel's user avatar
0 votes
0 answers
22 views

Keep list of user-definitions

Is there some easy way to keep track of user defined definitions. Or perhaps even better definitions made while some definitionRecordingFlag==True. This is prompted ...
Kvothe's user avatar
  • 4,491
2 votes
1 answer
40 views

Intercepting typos/misstyped symbols and automatically correcting them in the FrontEnd

I often mistype Print[] as PRint[] and Remove[] as REmove[]. I was wondering if its possible to use $NewSymbol to intercept ...
Tapiocaweasel's user avatar
6 votes
1 answer
119 views

How to obtain all definitions in which a symbol appears?

My question is very similar to https://stackoverflow.com/questions/5840313/how-to-get-all-definitions-associated-with-other-symbols except I am looking to find all definitions in which a symbol ...
Kvothe's user avatar
  • 4,491
5 votes
1 answer
136 views

Weird symbol shadowing from GraphicsRasterInformationPatch` when loading NCAlgebra`

When doing ...
Gravifer's user avatar
  • 872
1 vote
1 answer
87 views

Functions involving variables that have been "Symbolized"

I used the Notation package to symbolize expressions of the form Superscript[u,_]. I then proceeded to manually input the values ...
Julio Cáceres's user avatar
1 vote
0 answers
72 views

Why must the "&" symbol be placed inside function instead of outside? [closed]

The following code is taken from Wolfram Community "Quantum Error Correction: bit flip". ...
am567's user avatar
  • 501
3 votes
1 answer
159 views

Do symbolic integration of function including \[ScriptCapitalL]

I have done a symbolic integration in mathematica 13.2 as follow Integrate[-((Sqrt[-r(r - 2 l)] l)/(r(r - 2 l) (-r + l))), r] // Simplify[#, r > 0] & ...
Lain's user avatar
  • 133
4 votes
0 answers
78 views

Temporary symbol leaks into public context?

This phenomenon has confused me a long time. Consider the following package example, ...
Lacia's user avatar
  • 2,263
0 votes
1 answer
37 views

What is the relationship between a list of symbols created by a specific name, and a expression with such a name?

I'm trying to create a list of symbols called "x" for calculating symbolic gradients of some functions, so I write: ...
Xudong's user avatar
  • 3
4 votes
1 answer
117 views

Purple color text related with RowBox

Type the first line of following code and press enter key. ...
imida k's user avatar
  • 4,295
0 votes
0 answers
42 views

Annoying Glitch when inserting symbols

Anybody else had this glitch when inserting symbols This should be ::Delta
Dimitri_896's user avatar
3 votes
1 answer
81 views

Basic question Sort criteria

Can you explain the following codes? (output of codes) I know that there is the default ordering for any expression in Mathematica and Sort uses the default ...
imida k's user avatar
  • 4,295
0 votes
0 answers
50 views

Why Names will search all subcontexts?

My version is 13.2. When debugging I came across this peculiar feature of Names. Starting with a fresh kernel, define Then ...
Lacia's user avatar
  • 2,263
0 votes
0 answers
56 views

how do you choose a receiver of expression between just-a-symbol and function?

for a formula eg y=a*x+b in book, we can use y=a*x+b and use y to quote the expression ...
Aerterliusi's user avatar
1 vote
2 answers
149 views

Difference between (Names of ) Symbols and Mathematical Objects [closed]

The documentation says: "The Wolfram Language by default interprets any sequence of letters or letter‐like forms as the name of a symbol." But when I test for example the object "=...
zbjoko's user avatar
  • 35
0 votes
0 answers
61 views

Why is variable in function definition not local in Mathematica?

I was surprised to find out the names of arguments of a function definition are not "temporary name/formal name" ...
Aerterliusi's user avatar
1 vote
0 answers
39 views

Sorting stored variables in memory

Given the list of stored variables Names@"`*" is it possible to sort them by size in used memory?
sam wolfe's user avatar
  • 4,863
1 vote
0 answers
39 views

How to create a Sort function that does not differentiate between String rule keys and Symbol rule keys

Im trying to Sort Rule-s according to Key-s (or names) but the normal ...
Jules Manson's user avatar
  • 2,467
4 votes
2 answers
128 views

What does the "$" symbol mean in Mathematica programming? [duplicate]

I cannot find any reference to the $ in the Mathematica documentation, yet I frequently see it used, especially on StackExchange.
user7770957's user avatar
7 votes
2 answers
361 views

How to generate a horizontal histogram with words?

I have a dataset of the type: ...
SAC's user avatar
  • 1,335
2 votes
0 answers
59 views

Is it safe to alias a ResourceFunction with a symbol of the same name?

The following will show how easy I alias Ding which is my very first ResourceFunction and it works very well. ...
Jules Manson's user avatar
  • 2,467
3 votes
3 answers
159 views

Replace repeated items differently

So I have a simple replacement rule of the following form: expr/.f[a_,b_]:> g[a,#]g[b,#]&@func[] i.e. I want to replace each function f[a,b] with two ...
Akoben's user avatar
  • 747
2 votes
1 answer
198 views

Can you use superscripts as variable and function names?

I want to express the following function: $z^{(1)}=w^{(1)}a^{(0)}+b^{(1)}$ I have read in Mathematica documentation that Symbolize can be used to define variables ...
M.E.'s user avatar
  • 333
2 votes
1 answer
774 views

How to copy infinity symbol as ∞ and not as \[Infinity]

FromCharacterCode[8734] (* ∞ *) No matter how I copy whether as plaintext or input text or whether it is inside string like <...
azerbajdzan's user avatar
  • 18.9k
5 votes
2 answers
297 views

How stack text over an arrow

As part of a visualization of a mapping from a planar domain to another planar domain, I want to create a Row of the form ...
murray's user avatar
  • 11.9k
7 votes
1 answer
285 views

What does the operation Map[({...}=#;{...})&, ] do?

With reference to the answer by @Bill to the question posted here, I am trying to understand the following three lines ...
seeker's user avatar
  • 539
5 votes
3 answers
174 views

Get the symbol name of the function's nth argument

I tried this: Plo[fun__] := SymbolName @ Part[List @@@ Unevaluated @@ {Hold[fun]}, {1}, 2] SetAttributes[Plo, HoldAll] On ...
user2679290's user avatar
3 votes
2 answers
436 views

What is the difference between Clear and ClearAll? [duplicate]

I'm reading Mathematica Programming by Leonid Shifrin. And it said ClearAll serves to clear all definitions (including attributes) for a given symbol (or symbols), ...
Sung's user avatar
  • 35
1 vote
0 answers
61 views

Unset Variable Using condition or If

Using Condition ...
eason's user avatar
  • 197
5 votes
1 answer
101 views

How to get the Echo >> symbol?

What is the character code or way to get/type the >> symbol used when echoing something?
user13892's user avatar
  • 9,443
4 votes
0 answers
42 views

Sequence in superscript

The code DisplayForm@SuperscriptBox[a,b,c] makes a invalid box. It still renders like $a^b$, but it's red with an error message (as it should be). That being said,...
Adam's user avatar
  • 3,956
3 votes
1 answer
84 views

Once[…, "location"] adds $CellContext` to all global symbols

For certain persistence locations, such as "Notebook" or "FrontEndSession", ...
Deniz's user avatar
  • 235
1 vote
1 answer
137 views

Private`x from a package function used outside

I'm fairly new to the Wolfram Language and I'm having a problem with how packages work. I have some function that are inside a package, the goal of those function is to create random polynomial ...
cgcg's user avatar
  • 69
4 votes
1 answer
149 views

Symbolic representation of large output

The package xAct does something really nice when it handles large outputs, which is to represent the expression as a symbol and display that symbol when the cursor hovers over it. For example, ...
shanedrum's user avatar
  • 587
3 votes
3 answers
112 views

Get coefficient of a symbolized symbol in a sum that involves other symbolized expressions

My mathematica notebook begins with symbolizing all expressions of the form $x$ subscript an integer, "$x_k$", ...
gen's user avatar
  • 195
0 votes
0 answers
51 views

Why does local sigma escape its Block in Mathematica 13.0.1?

My objective is to utilize Traditional Form in .NB files. But I've run into a problem where variables I intend to be local to a Block "escape" with an assigned value causing unexpected &...
A Chase Turner's user avatar
7 votes
2 answers
287 views

How to show distance between two horizontal lines in a graph

I want to plot a like this So far, I am able to plot it like this ** However, I am unable to add that \[Sigma] symbol between those two dashed lines. How do I do ...
user444's user avatar
  • 2,446
2 votes
1 answer
101 views

Composition of functions not working [closed]

I am trying to set a function within a function. What I do is to first create a function with two arguments. Then I would like to set a new function with the same two arguments, in which the previous ...
Rubén Pérez Sanz's user avatar
1 vote
1 answer
154 views

Strange eigenvalues result

I asked mathematica to determine the eigenvalues of a 3x3 matrix and the result it gives me is: ...
Mathew's user avatar
  • 185
0 votes
0 answers
186 views

Why does mathematica sometimes use a visual fraction and sometimes use a symbolic fraction?

Sometimes when I have an input, mathematica will give the out put with a visual output of the fraction: i.e Input:3/4 Output: 3 --- 4 whereas other times it ...
akozi's user avatar
  • 873
0 votes
0 answers
106 views

What does [W_Wad] mean?

Found this one in closed forms of a fraction. Wolfram only gives a way to copy as plain text: (3830 W_Wad)/1177≈0.97621070518266779949 And then it won't recognise ...
Alexandr Dorofeev's user avatar
0 votes
2 answers
95 views

A problem when solving an equation with symbolic variables

I asked a question a couple days ago and received a solution that worked for me at the time. But now I am seeing that the proposed solution fails for some other cases I need. For example, if I just ...
Slayer147's user avatar
  • 247
0 votes
1 answer
71 views

Using the symbol of the system of equations [duplicate]

Part 1 I'd like to know how to use the symbol of system of equations (left curly braces). I tried the following code: Part 2 How can I add a third equation?
Gennaro Arguzzi's user avatar
1 vote
1 answer
1k views

Symbol of system of equations

I'm wondering if there is a way to use the symbol (the left curly bracket) of a system of equations. So far I found only the following "symbol": I need to remove the two conditions. EDIT2: ...
Gennaro Arguzzi's user avatar
0 votes
0 answers
61 views

Is there a concise way to generate a continuous less-than relationship?

Actually, I have a ton of variables, Let me simplify it to 4 in this post. vars = {a, b, c, d}; 0 < Less @@ vars < 10 0 < (a < b < c < d) < ...
yode's user avatar
  • 26.8k
7 votes
1 answer
304 views

Equivalent for \hookrightarrow, ↪

Of course I can simply type the unicode ↪, but is there a operator with no built in meaning that renders like this? The documentation guide/ArrowsAndArrowLikeForms presumably lists all arrows. If it ...
Adam's user avatar
  • 3,956
1 vote
0 answers
104 views

how to check inside a module if a symbol is local to the current module or global?

One way to check if a symbol is global is to do Context[x] and this will give Global if the symbol is in the global context. But ...
Nasser's user avatar
  • 145k
3 votes
1 answer
158 views

Partial derivatives in a variable name

I would like to create variable with names of the form \[PartialD]g and \[PartialD]\[PartialD]g. Is there any way to do this?
Jonathan Shock's user avatar

1
2 3 4 5
7