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
0answers
30 views

Unprotect number constants [closed]

1 is not a valid symbol name. Set says that it is a raw object. How much do I need to break to make ...
2
votes
0answers
51 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 ...
1
vote
0answers
31 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 ...
1
vote
3answers
58 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 ...
0
votes
2answers
57 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 "-"?
1
vote
1answer
39 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 ...
4
votes
1answer
84 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 ...
1
vote
1answer
43 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: <...
3
votes
0answers
56 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 ...
0
votes
0answers
35 views

Bug with ValueQ involving fractions? [duplicate]

Expected behavior: ClearAll[f]; ValueQ[f[1]] False Unexpected behavior: ...
0
votes
0answers
49 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: ...
1
vote
0answers
54 views

Mathematica says that a variable is not defined, yet it gives me a value [duplicate]

this is probably a dumb question (Mathematica noob here) but I can't figure out what's going on. I have a variable that I assign a value to and use, then later in the notebook I assign it a different ...
2
votes
0answers
85 views

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)
1
vote
0answers
28 views

Syntax highlighting for Symbolized variables in Solve

This is a duplicate of Syntax colouring when using Symbolize, but that post is almost eight years old and hasn't been active in almost four years. Is it possible to get normal syntax highlighting for ...
0
votes
0answers
45 views

How to write $I$ and $I_0$ as a symbol?

How could we write both $I$ and $I_0$ as a symbol in Wolfram Mathematica? I consider $I$ as a variable and $I_0$ as a parameter in my system of equations ($Y=C_0 + I, I=I_0+bY$, Y and I are endogenous ...
4
votes
1answer
64 views

Method for determining valid name syntax?

This question 40194 asks about work arounds to check and replace variable names which are invalid in a specific MMA function context. For that case testing using the function itself is the most ...
0
votes
0answers
35 views

How to DumpSave previously assigned symbols

I'm trying to DumpSave[] some variables based on their name string. To define them, I'm using ...
1
vote
0answers
73 views

How to figure out syntax for symbols?

I'm new to Mathematica and am having a hard time figuring out how to type certain symbols when I read the documentation. For example, in https://reference.wolfram.com/language/ref/...
2
votes
2answers
66 views

How to get the symbol name of a list element?

Let's say we have a list g with variable d as its element: Clear[g, d] g = {1,2,3,d} Now <...
2
votes
0answers
48 views

Issue with calling one notebook from inside another one

I am calling one notebook (N2) from inside another notebook (N1). The results are transferred correctly from the second notebook to the first one. But when I try to compare the results from the two ...
14
votes
4answers
795 views

When is a symbol a Symbol? Is there an easy Mathematica way to test if an object is a symbol sort of like a SymbolQ?

Yes I know there is no built-in native function called SymbolQ (but JavaScript does). However, could one be simulated to work for most cases? I often rely on ...
0
votes
0answers
31 views

How to tell Mathematica to display results in terms of * symbol instead of Conjugate[]

When I have complicated expressions with several complex conjugations, which I write in using the symbolically tidy Esc conj Esc, it frustrates me how Mathematica will then always display ...
3
votes
1answer
118 views

Symbolized, Subscripted Variable Doesn't Look Pretty

Background I'm trying to programmatically generate a subscripted variable in a way that makes it appear "pretty". Here is a minimal working example that shows some strange behavior I'm ...
4
votes
1answer
51 views

Name of patterns cast as expressions from strings

I'm trying to match a part of a string while imposing conditions on the patterns, e.g.: StringCases["223", a: DigitCharacter ~~ b: DigitCharacter /; Unequal[a, b]] ...
1
vote
1answer
47 views

Default Options not working in user-defined function for SymbolName

Abstract I have a function objectName[symbol] that returns the SymbolName as both a standalone function or when nested inside ...
1
vote
0answers
25 views

How to make function return SymbolName or alternate name string if a function parameter is given [closed]

Abstract: I have a function objectName[...] that works just fine for variables (symbols) set to numerical results or strings which returns their unevaluated ...
2
votes
1answer
68 views

Are symbols automatically generated when defining a variable in the global context and what are symbols?

Abstract: I have noticed something really tricky with Mathematica and the documentation for symbols is short on clearing the confusion. It likely reveals what symbols are but it's not very prominent. ...
1
vote
1answer
36 views

Extracting name of symbol (variable name) from within a function not working

Abstract: I use a pattern so often that I needed to make a function for constructing it. A function getName[...] for extracting name of variable and value only ...
2
votes
1answer
79 views

How to use the SymbolName of variables along with Map and pure function

I want to label each point of a Graphics3D with the simplest method as possible. I tried many solutions like this : ...
12
votes
1answer
187 views

PlusMinus definition unexpectedly affects plotting

In version 10.1 I found a strange Plot behavior I did not anticipate. It seems that various heads including PlusMinus are ...
3
votes
1answer
53 views

Hold all the symbols from a huge list?

The two following codes work similarly: Num = 5; symbols = Hold[X1, X2, X3, X4, X5]; or ...
3
votes
0answers
80 views

Why are some symbols recognized by Mathematica but nowhere in the documentation? [duplicate]

I was trying to calculate a Groebner basis for a given set of polynomials, and I did it successfully. But I wanted to calculate the conversion matrix between the original basis and the Groebner basis....
4
votes
1answer
65 views

Custom function which behaves like `Evaluate`

Question Is there a way to define a function which evaluates itself regardless of HoldAll, HoldFirst, ... ? Background I'm ...
2
votes
0answers
72 views

What is the symbol for Matrix inverse operator? [closed]

I tried to take inverse of a matrix A using Inverse[A] and it gave me the right result. But when I tried using notation form A-1 by using typesetting superscript, it gives me wrong result (element ...
1
vote
2answers
106 views

Semi-direct product and crossed product symbols

Does Mathematica have any symbols for the semi-direct product $\rtimes$ (or $\ltimes$) and the crossed product $\bowtie$? I have looked at the lists containing all symbols and couldn't find it there. ...
2
votes
1answer
77 views

How to create a list of variables and reference them?

I was trying to create a list of n variables such as x = Table[Symbol["x" <> ToString[i]], {i, 5}], which be done by using ...
6
votes
1answer
193 views

Implement abstract algebraic structure

I would like to implement algebraic structures in Mathematica such as groups, algebras, Lie-algebras, Hopf-algebras, ... In particular, after initialising such a structure, I would like to have ...
0
votes
1answer
63 views

How do I stop a symbol being evaluated?

If I have an association A with a key of X then Keys[A} yields {...,X...} with X being unevaluated. Now suppose I assign X a value, say 2 for simplicity, then A[X] evaluates as A[2] rather than A[X] ...
3
votes
2answers
242 views

What does $ mean in an output? [closed]

Solving a function in more than one variable, Mathematica gives me output in this way: name_variable$number instead of giving me a number. I looked for symbol: $ online, but unfortunately I ...
4
votes
0answers
81 views

Obtain complete list of built-in graphical objects, and split them into groups?

I would like to obtain the complete listing of built-in graphical objects (which can be used in Graphics or Graphics3D) ...
0
votes
1answer
29 views

Testing Expression over region of values

I'd like to test whether this expression is negative when a and b are constrained to lie within (0,1) interval. Any ideas how? ...
1
vote
1answer
41 views

InputField with a symbol’s name [duplicate]

Suppose I have an InputField of type String wherein I want to enter a symbol name that I want a later Button to assign values to. That button would then do something like: ...
0
votes
1answer
95 views

Matrix of functions

I want to create a matrix of functions. As explained in this question, I can create a matrix of variables: ...
11
votes
2answers
224 views

Why does args symbol exist in a fresh kernel?

In fresh kernel Mathematica 11.3 (Linux) asking for args (similarly for dims) I obtain ??args Global`args As far as I ...
14
votes
1answer
592 views

How can I obtain a complete list of the kinds of atomic expressions in the Wolfram Language using only the language itself?

I mean, Wolfram is a language--it's words are infinitely combinable. According to answers to my last question, the only way I can find out if an expression is atomic is actually use the expression. ...
1
vote
2answers
87 views

How can I ask the Wolfram Language to tell me if a hypothetical expression with a particular head would be atomic or not?

Integers in the Wolfram Language are atomic expressions, while uses of the Map function are not atomic. But if you didn't know this, how could you find out using only the Wolfram Language? The best I ...
1
vote
3answers
118 views

Why do atomic objects like 56 have a head if they're supposed to be, well, atomic?

This question follows from this one I made earlier. If you ask for FullForm[4] you will get back 4, and that's fine. ...
3
votes
2answers
158 views

What's the difference between 56 and Integer[56]? [duplicate]

I'm trying to grasp how to Wolfram Language uses symbolic expressions for everything. The concept of doing so makes sense to me, but the language doesn't behave how I predict. I understand how ...
10
votes
2answers
604 views

Make symbols atomic, without losing their type

So, I'd like to define a matrix M, that does not decompose into it's constituents when I do things like Tr[M], but I also want it's type to be retained. (By type, ...
2
votes
1answer
158 views

Automated (lazy) method to make custom (key-input) shortcuts (not menu items) for letter-like symbols? [duplicate]

The Problem: I don't know about you, but every time I am trying to do analytical work in Mma, it is rather difficult/cumbersome for me to type the following, here specifically for ...

1
2 3 4 5 6