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
4 votes
0 answers
31 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,...
user avatar
  • 2,648
2 votes
0 answers
30 views

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

For certain persistence locations, such as "Notebook" or "FrontEndSession", ...
user avatar
  • 205
1 vote
1 answer
62 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 ...
user avatar
  • 69
2 votes
1 answer
46 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, ...
user avatar
  • 413
3 votes
3 answers
87 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$", ...
user avatar
  • 155
0 votes
0 answers
43 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 &...
user avatar
7 votes
2 answers
186 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 ...
user avatar
  • 319
2 votes
1 answer
77 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 ...
user avatar
1 vote
1 answer
57 views

Strange eigenvalues result

I asked mathematica to determine the eigenvalues of a 3x3 matrix and the result it gives me is: ...
user avatar
  • 123
0 votes
0 answers
73 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 ...
user avatar
  • 697
0 votes
0 answers
38 views

What is OLEData? VectorGlyphData?

System`OLEData is a symbol, and I only see it referenced in syntax highlighting lists online. Same for System`VectorGlyphData. ...
user avatar
  • 2,648
0 votes
0 answers
59 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 ...
user avatar
0 votes
2 answers
82 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 ...
user avatar
  • 207
0 votes
1 answer
41 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?
user avatar
0 votes
1 answer
96 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: ...
user avatar
0 votes
0 answers
51 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) < ...
user avatar
  • 23.4k
7 votes
1 answer
260 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 ...
user avatar
  • 2,648
1 vote
0 answers
78 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 ...
user avatar
  • 108k
3 votes
1 answer
95 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?
user avatar
2 votes
0 answers
55 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 ...
user avatar
  • 483
-2 votes
1 answer
70 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 ...
user avatar
1 vote
1 answer
64 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}} - \...
user avatar
  • 445
6 votes
1 answer
308 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 ...
user avatar
  • 289
1 vote
1 answer
58 views

How to create a simple transformation function on lists using short form of ReplaceAll?

I can easily do this with Map so the real goal of this exercise is to get a better grip on using transformation rules. Please help with this. The outputs should be ...
user avatar
  • 1,787
1 vote
1 answer
49 views

How can I clear the symbol \[ImaginaryJ] for use for another purpose?

By default it is the same as imaginary unit, but I want to use it for split-complex numbers.
user avatar
  • 2,721
4 votes
1 answer
62 views

Symbol scope in `SetDelayed` and `Evaluate`

In my previous question I described a problem, when one of the approaches I tried to use didn't work because of the interaction between Evaluate[] in combination ...
user avatar
  • 291
1 vote
0 answers
43 views

Go back to a symbolic expression to evaluate derivative

I have the following code. ...
user avatar
1 vote
1 answer
117 views

Superscripts in Mathematica. What is it?

I am calculating a cross moment of a bivariate random vector from its moment generating function. The moment generating function includes the CDF of a bivariate normal distribution. After taking 2nd ...
user avatar
  • 11
3 votes
1 answer
37 views

Position doesn't work for custom symbol within package

In a notebook, I can easily search an expression for a custom symbol. In[237]:= Position[{mySym, 1, 2}, mySym] Out[237]= {{1}} However, if I write a function and ...
user avatar
2 votes
1 answer
88 views

Can I tell whether a symbol is build-in (part of the System` library)?

I'd like a function that checks whether a symbol is a predefined part of the language or not. More generally, it might check whether it's part of a given package. ...
user avatar
1 vote
1 answer
68 views

Getting a symbol from a string without it being replaced by its value?

Consider the following code running on a fresh Mathematica session with no symbols defined: p[s_String] := Protect[s]; p["x"] This doesn't do anything ...
user avatar
  • 107
0 votes
0 answers
29 views

Get the name of the elements in array and manipulate

I have an array: hline = {s0, d1, d1e, s1a, q1a, s1b, d2ae, d2a, s2a, q2a, s2bq, q2b}; each element is a matrix. I would like to generate another array, with ...
user avatar
  • 141
0 votes
0 answers
100 views

Creating new variable names, Symbol or ToExpression

One can create new variable names by Symbol : In[1] Table[Symbol["x"<>ToString[i]], {i,1,5}] Out[1] {x1,x2,x3,x4,x5} But it is also possible to ...
user avatar
  • 2,451
3 votes
1 answer
76 views

How can I label a table of histograms with the names of the data symbols, not the data themselves?

How can I label a table of histograms with the names of the data symbols, not the data themselves? If I want to make a table of plots with each plot labeled with the name of the function it plots, ...
user avatar
3 votes
1 answer
44 views

Type formation rules for 1-position expressions

I made a summary of the rules for formation of types for simple 1-position expressions, as I understand them. Here it is in textual form: A symbol, say, α, is a discrete entity, represented by a ...
user avatar
1 vote
1 answer
91 views

Alternatives to NumericQ that allow symbols to be considered numeric

I am writing a program in which I am using NumericQ. I am trying to allow symbols to also be considered Numeric, so I have been using NumericQ[a]=True for all of ...
user avatar
2 votes
0 answers
41 views

What sorts of expressions can be Solve'd for?

We can Solve for expressions that match _Symbol, as in Solve[x^2+1 == 0, x]—but we can also ...
user avatar
  • 7,749
0 votes
0 answers
63 views

A function that maps Held symbol to string

Rougly my question is about constructing a function that maps Hold[var] to "var" even when var has an assigned value. In details : ...
user avatar
  • 2,451
0 votes
1 answer
31 views

symbols in a function to "take on" the values of controls with the same names in Manipulate

(** I want the symbols a1... in f1... to "take on" the values of the controls with the same names in Manipulate[Plot[f1[3,"a"],{x,1,3}],{a1,0,1},{a2,0,1},{a3,0,1}]. Here's what I'...
user avatar
2 votes
1 answer
66 views

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?
user avatar
2 votes
0 answers
55 views

Syntax highlighting for own functions only for certain symbols

For simplicity, let's say I have defined my own function f that takes in exactly one input argument which is of the Symbol type ...
user avatar
  • 71
1 vote
0 answers
34 views

What does it mean by the Alternatives symbol a|z? [closed]

The following very simple code Resolve[Exists[{x}, x == 3 && a + z < x ]] gives the result ...
user avatar
1 vote
3 answers
64 views

How to set a value to the symbol denoted by a given string? [duplicate]

The code setString[name_String, value_]:= Evaluate[Symbol[name]] = value fails whenever Symbol[name] has already been assigned ...
user avatar
0 votes
2 answers
70 views

How can i replace the symbols in a list?

As you can see from the picture, how can I change all the "->" symbols to "-"?
user avatar
1 vote
1 answer
122 views

Mirroring the graph on the negative y axis

Another quick question, I have been trying to plot a phase plot, which has resulted in some issues. I know that there is a negative axis which it is also transposed on. However, when I include ...
user avatar
4 votes
1 answer
107 views

Transpose::nmtx error when using Greek Formal symbol in NDSolveValue

Bug introduced in 12.0 or earlier, persisting through 12.2. Consider the following call to NDSolveValue for a system of ODEs with 2 dependent variables, where we ...
user avatar
  • 1,215
1 vote
1 answer
58 views

Programmatically defining variables

I seems as though what I am interested in is unconventional, but I am interested in defining a number of different variables programmatically. For example I can write a matrix of variables by doing: <...
user avatar
3 votes
0 answers
66 views

Mathematica Refuses to Output ContourIntegral and DoubleContourIntegral in Nice Mathematical Notation

I experience a strange behaviour of handling the Contour and Double Contour Integral symbols \[ContourIntegral] and \[DoubleContourIntegral] in Mathematica. Whatever I try theyy behave differently ...
user avatar
  • 2,751
0 votes
0 answers
35 views

Bug with ValueQ involving fractions? [duplicate]

Expected behavior: ClearAll[f]; ValueQ[f[1]] False Unexpected behavior: ...
user avatar
  • 699
0 votes
0 answers
62 views

Weird behavior of ℏ (\[HBar]) symbol on TensorExpand

I was trying to implement some tools to do commutators on quantum mechanics, just for fun. Then I noted a peculiarity: ...
user avatar

1
2 3 4 5
7