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
-1 votes
0 answers
40 views

Out put of FeynCalc is not symbolic

When I run, for example: LC[$\alpha$, $\beta$, $\mu$, $\nu$] MT[$\mu$, $\nu$] the out put is LC[$\alpha$, $\beta$, $\mu$, $\nu$] MT[$\mu$, $\nu$] rather than $\varepsilon_{\alpha \beta \mu \nu}g_{\mu\...
João Paulo Melo's user avatar
1 vote
1 answer
86 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". ...
QC123_367's user avatar
  • 491
3 votes
1 answer
150 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
76 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,208
0 votes
1 answer
35 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
112 views

Purple color text related with RowBox

Type the first line of following code and press enter key. ...
imida k's user avatar
  • 4,047
0 votes
0 answers
41 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
78 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,047
0 votes
0 answers
42 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,208
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
129 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
0 votes
0 answers
46 views

Is there a way to see all symbols defined (eg all variables and all functions) in Mathematica like Matlab? [duplicate]

Is there a way to see all symbols(like variables and functions) defined in current Mathemactica-memory? I remember in Matlab one can see all symbols and their values in a "grid"(may be a ...
Aerterliusi's user avatar
1 vote
0 answers
38 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,179
1 vote
0 answers
36 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,407
4 votes
2 answers
125 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
356 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
54 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,407
3 votes
3 answers
145 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
  • 727
2 votes
1 answer
170 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
  • 323
2 votes
1 answer
438 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
  • 9,993
5 votes
2 answers
250 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.8k
7 votes
1 answer
280 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
170 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
345 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
60 views

Unset Variable Using condition or If

Using Condition ...
eason's user avatar
  • 197
5 votes
1 answer
97 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,113
4 votes
0 answers
40 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,907
2 votes
0 answers
50 views

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

For certain persistence locations, such as "Notebook" or "FrontEndSession", ...
Deniz's user avatar
  • 215
1 vote
1 answer
106 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
3 votes
1 answer
133 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
  • 557
3 votes
3 answers
104 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
50 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
268 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 ...
user84456's user avatar
  • 1,554
2 votes
1 answer
97 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
131 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
158 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
  • 823
0 votes
0 answers
93 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
91 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
  • 207
0 votes
1 answer
62 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
724 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
60 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.4k
7 votes
1 answer
299 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,907
1 vote
0 answers
103 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
  • 137k
3 votes
1 answer
139 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
2 votes
0 answers
105 views

Store pattern names in variables, and use them in Condition (/;)

I am trying to create patterns whose form is not hard-coded, and which are not explicitly directly written. For that I want to use one list of pattern names to name some parts of a ...
abcd's user avatar
  • 483
0 votes
1 answer
203 views

How to use the Wolfram Language Symbol entity type to list all the entity types? [closed]

I would like to map EntityValue[#,"SampleEntities"] over all the domains of entities, but before I spend 20 to 30 minutes typing every single entity, I would like to be aware of any way to ...
Peter Burbery's user avatar
1 vote
1 answer
167 views

Symbol compute of Euler-Lagrange equation

If i have the Lagrange density function $$L(x,\dot{x}) = \frac{1}{2}x^2+ \frac{1}{2}\dot{x}^2,$$ The Euler-Lagrange equation is very simple by $$ \frac{d}{dt}\frac{\partial L}{\partial \dot{x}} - \...
lumw's user avatar
  • 583
6 votes
1 answer
339 views

How can I self-define a keyboard entry for 3-dot "Because"?

In Mathematica, there already exists a keyboard entry for 3-dot "Therefore", which provides great convenience for input as shown below. However, I find it a little odd that for its ...
AlbertLew's user avatar
  • 473

1
2 3 4 5
7