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
2
votes
1answer
58 views

Symbolized, Subscripted Variable Doesn't Look Pretty

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 trying to ...
4
votes
1answer
47 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
35 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
22 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
59 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
26 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
70 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
170 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
47 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
74 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
55 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 ...
1
vote
0answers
52 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
0answers
44 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
54 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 ...
5
votes
1answer
140 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
52 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
219 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
75 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
36 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
73 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
1answer
144 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
580 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
78 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
115 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
126 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
592 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
131 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 ...
2
votes
1answer
53 views

How to customize a double integral symbol?

I use Mathematica as a notebook,but there is no double integral symbol,there is also no triple integral symbol and so on If there is any way to customize a symbol
2
votes
2answers
70 views

How can one eliminate results in which symbols are assigned constant values?

As an exercise (pertaining to my posting Perform a constrained integration over $[-1,1]^6--yielding a "separability probability"), I issued the command ...
1
vote
1answer
62 views

Using TeXForm for subscripted variables

I tried following the answer in TeXForm and Symobilze, however, I have trouble making it work. I loaded the Notation packages and symbolized all expressions with a subscript as in the example. I ...
2
votes
0answers
30 views

Unexpected symbol::shdw warning during NotebookEvaluate

Consider the following code: ...
8
votes
0answers
52 views

Dealing with over eager shadowing messages

...
6
votes
1answer
450 views

Symbol appears in multiple contexts when loading package

I'm building a Mathematica application "APPStestI" that contains three packages: SUBappsA.m, SUBappsB.m, SUBappsC.m and APPStestI.m. Where APPStestI.m is the main package; SUBappsA.m and SUBappsB.m ...
3
votes
1answer
119 views

Why are stored variables with symbols featuring subscripts in blue after evaluation?

When normal variables are stored in the kernel after an evaluation they change color in the notebook from blue to black. I notice that if such variables are defined with symbols having subscripts such ...
3
votes
1answer
58 views

Converting linear combinations of symbols (with numbers) to linear combinations of list elements

I have a function that generates output that is a list of linear combinations of symbols with numbers, as an example: ...
2
votes
1answer
166 views

Convert ASCII Characters to Mathematica Input Form

I have the following pure ASCII character list: ...
1
vote
2answers
102 views

Mathematical symbols appear grey/faded/opaque

I admit this is quite a strange question. The mathematical symbols in my output appear as grey and faded, instead of bold black like my input. I attach a photo. Both the curly brackets and the minus ...
1
vote
1answer
46 views

Setting to zero non defined array variables

I have a situation like this (for example): ...
7
votes
2answers
199 views

Change nested list of symbols to nested list of numbers

I have some nested lists of symbols, all of the same format, and I wish to convert them to nested lists of integers, i.e. {e1,{e1,{e1,e2}}} -> {1,{1,{1,2}}} ...
7
votes
2answers
128 views

How can I implement a listener variable in Mathematica?

I'd like to be able to listen to a variable and know when it's been changed and accept/reject the change as well as use it as an update listener for Dynamic how can ...
1
vote
1answer
73 views

Using both subscripted and non-subscripted variables in an equation

I'm getting started with Mathematica, as I have been using Maple in the past. Is it possible to define two variables $\alpha_1, \alpha_2$ and then still use $\alpha$ as a parameter of a function and, ...
1
vote
3answers
76 views

Elimination of terms not containing at least one variable from a set

I have an expression with each term therein either containing at least one $n_i \in \left\{ n_1 , n_2 \dots , n_{5} \right\}$ or no $n_i$ at all. I would like to easily eliminate all the terms that ...
3
votes
2answers
211 views

List names of symbols with its arguments

Before Mathematica 10.0, when there was no Association, the suggested way of using datastructures map, was to abus arguments of undefined symbols: ...
7
votes
1answer
813 views

What does the syntax C[1][x][y] mean?

I am examining an integrability condition, $$u_{3,122}=u_{3,123}.$$ Typing DSolve[D[u3[x1,x2,x3],x1,x2,x2]==D[u3[x1,x2,x3],x1,x2,x3],u3,{x1,x2,x3}] it into MMA ...
1
vote
3answers
51 views

Importing table with symbolic and numerical rows

Consider generated numerical data with added symbolical row: ...
5
votes
1answer
590 views

How to list all user-defined symbols?

I create a lot of symbols, and then I move on to my next set of manipulations. I noticed that symbols from prior sessions are still around. I have no idea how many symbols are in my context, but there ...
5
votes
2answers
238 views

Where to look up information about some symbols, such as “,”, “[” and “]” (not string)?

Searching { in F1 documentation, one at least gets an item for List. But the same thing is not happening for ...
1
vote
1answer
26 views

Halt the computation when it encounters a Symbol?

Is there a way to stop the evaluation of an expression when the result of that expression would depend on the value of a Symbol? ...
12
votes
1answer
213 views

Check if symbol is in core language

How can I check if a symbol is pre-defined by Mathematica, in a way that's backwards compatible with old versions? i.e. I would like some CoreLanguageQ[x_Symbol] ...

1
2 3 4 5 6