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.

learn more… | top users | synonyms (2)

0
votes
0answers
27 views

Pass list title as argument? [duplicate]

I have a function that works with a list and outputs it. Is it possible to also get the name of the list as an argument? Right now my code is ...
1
vote
0answers
45 views

How to declare variables with plus/minus sign as subscript/superscript?

I am pretty new to mathematica, so please forgive me if I ask any stupid questions. I want to create a vector $a^{+}=[a^+_{k-2},a^+_{k-1},a^+_{k},a^+_{k+1},a^+_{k+2}]$ and then do some symbolic ...
2
votes
1answer
41 views

Define return values for a function that is not of type Boolean

I have a function with more than two possible return values. A simplified example is the following function that classifies vertices of a graph according to their degrees: ...
2
votes
0answers
34 views

Protected Variable Error with Workbench 3.0

I have Wolfram Workbench 3.0, build 78, with Mathematica 10.4 as the front end. I am using Windows 10. I am trying to run a simple test source code test.m: ...
1
vote
1answer
91 views

Make a glyph using the BezierCurve function

There are a lot of applications that you make a glyph from a scanned image. Mathematica does have fine tools to interpolate curves like the BezierCurve[] function. ...
0
votes
1answer
61 views

Special characters in mathematica

I'm currently making a plot and want to demarcate a couple of points. I would like to label them $\widetilde\alpha$ and $\hat\alpha$. How can I do this?
1
vote
1answer
32 views

RGtensor undefines some symbol

I am using the package RGTC for differential geometry. Firstly I define a symbol \[Sigma] = Array[PauliMatrix, {3}];, then a metric and other stuff (as required by ...
8
votes
1answer
111 views

What is ExpectationE and what does it do?

I just found the symbol ExpectationE with autocomplete. Rendered the symbol is Searching the documentation and the internet leads to nothing. Does somebody ...
0
votes
0answers
21 views

How to make an expression in this case evaluated one step and stop there? [duplicate]

I wonder how to make Symbol@"m" evaluated once so that it becomes a symbol m which is ready to be assigned again. ...
2
votes
1answer
70 views

Using Mathematica to batch-produce text files

I need to make a bunch of plaintext files, all of which differ only in a single parameter. The text I want to "copy" or "batch produce" is a little bit complex, since it contains quoted areas and ...
1
vote
0answers
69 views

How to input therefore sign in mathematica

I'm wondering how to input a therefore sign in Mathematica? For example, I want to input / output something like: ∴ a == 2 + 1 // TraditionalForm ∴ a = 3 ...
1
vote
1answer
68 views

How to extract all necessarily code for a function?

Many times when someone pastes a piece of code into SE there are missing values and symbols that the user left out. To prevent this I'm looking for a function that uproots other functions (extract ...
8
votes
2answers
535 views

Character to replace _ in symbol names?

In C, _ comes in handy when naming variables and functions, as a replacement for space. For example: ...
3
votes
2answers
146 views

Free symbols in an expression

I am starting to learn the basic MMA grammar these days. I hope I do not ask too much stupid questions. Here is one of them: Getting free symbols in an expression can be done by following codes: <...
6
votes
3answers
111 views

Differentiating between zero and “empty” in lists, and adding them?

(Edit: I mean 'differentiate' as in telling the difference between two things, not as in f'(x) ) I have n series of numbers, let's say two for example, with some "empty" spaces between the numbers, ...
3
votes
3answers
133 views

Selecting all the elements of different length that contain only numbers

If I have a list of lists with different lengths: {{1, 2, 3}, {1}, {1, 2, 3, 4}, {x}, {1, x}, {2}, {2, 3}} How can I extract all the sub-lists with no symbols: <...
6
votes
2answers
96 views

How to store symbols in a package without being parsed?

I have a package file myPackage.m with the following content: BeginPackage["myPackage`"]; load[] := {a, b, c}; EndPackage[]; ...
2
votes
1answer
62 views

$CellContext issue while trying to export the current output of a Manipulate

Having just read this question Getting variables out of Dynamic Modules after restoring the program and the Kuba's answer I'm trying to optimize my workflow. I'm writing a Mathematica notebook to ...
0
votes
1answer
83 views

what do those signs #1, #1^2, #1^3, & mean here? [duplicate]

I have read common pitfalls page and the documentation page but I still don't understand what do those signs mean here? ...
3
votes
1answer
62 views

Shared variable can not be distributed again after UnsetShared

I see a weired behavior in my MM 10.3 version. Can someone reproduce it or explain what is going on? The code is easy: ...
4
votes
2answers
74 views

List all LocalSymbols

I was working with a LocalSymbol, but after I deleted the cell I came back to the notebook hours later only to forget the name of the variable! Is there anyway to see a full list of the named ...
6
votes
2answers
163 views

Naming convention for symbols exported from package

I know this is a little opinion based, but so is Mathematica style guide and similar topics. The issue is important so I think this topic will be beneficial for future visitors. Q: So ...
3
votes
0answers
52 views

FindInstance of Matrices

I'm trying to use FindInstance to find examples of matrices that complete an expression. However, it seems like I need to specify atomics as my variables to the function. So, here's a really simple ...
4
votes
1answer
53 views

How to adapt MSPToExpression function in $PrePrint?

I am introducing the mathematica Security (MSP module) to our system. The Document suggests use MSPToExpression as followed: ...
3
votes
0answers
71 views

How to get “BasicFunctions” from WolframLanguageData with implicit entity

I am trying to get a list of the functions that have property "FunctionalityAreas" -> "BasicFunctions". The following does not work: ...
6
votes
2answers
151 views

Ignore some values at return

Is there Mathematica analogue of Python _ (underscore) or Matlab ~, a special variable, that can be used when a function returns ...
0
votes
0answers
39 views

Manipulating a symbol via its name [duplicate]

I'm trying to change the entries of a list. The problem here is that I only know the symbolname of the list for example name="x" , where x is defined as ...
4
votes
2answers
121 views

Get value of symbol

ab := {{a, 10, 100}, {b, 0, 10}} Manipulate[a*b, Evaluate[Delete[ab, 0]], Button["SHow", Print[Evaluate[Symbol[ToString[ab[[1]][[1]]]]]]; Print[a, "---", b]]] In ...
2
votes
1answer
83 views

how to change Symbol to other symbol?

I have Input =a**b**c I want to have output such as {a,b,c} So I want to change **->, but replace code does not work. How ...
1
vote
0answers
44 views

Location of a double cap symbol

I've been searching for this symbol in a variety of palettes, but have been unable to find it. Anyone know where I can find it?
0
votes
0answers
55 views

Can I use a variable name based on the results of a calculation? [duplicate]

How can I use the notebook filename as a variable? e.g. I have a notebook named notebook1.nb so I want the output of this: ...
6
votes
1answer
107 views

Relevant help page for: Sum`?

When I type Sum into Mathematica, it also offers Sum` in the autocomplete dropdown, but when I click the little menu button next ...
4
votes
2answers
271 views

How do Reap and Sow work in this context

I have a list of points in 3D and I need to count how many times each point is repeated. For a similar problem with a list of characters many different solutions have been proposed in this post: ...
12
votes
1answer
121 views

How to remove a LocalSymbol (or CloudSymbol)?

In version 10.2 LocalSymbol can be used to create a persistent store of a variable. Once this is created I don't see a method to remove it. How are are they ...
1
vote
2answers
104 views
1
vote
1answer
204 views

How can we accommodate arbitrary Unicode characters in symbol names?

I understand why Mathematica doesn't the support the [ character in symbol names, but it should be escapable in some way, like non-printable characters are in ...
19
votes
3answers
599 views

What are the requirements for a well behaved indexed variable? Subscript, ToExpression, Downvalue?

On writing this answer I needed to call a function, (NonlinearModelFit) with an unknown number of parameters. We have learned that we should not use ...
6
votes
1answer
132 views

What is the symbol set that Mathematica notebook supports?

I want to use symbols $\color{#ff0000}{\large\ltimes}$ and $\color{#ff0000}{\large\rtimes}$ in Mathematica notebook for semi-tensor product operator representation. But it seems Mathematica does not ...
8
votes
1answer
179 views

Invalid Symbol Characters

What unicode characters are invalid as a Symbol name? Ideally I'm looking for a complete list. Here is the current list ...
3
votes
0answers
56 views

“Undo” not working for script, gothic, and double-struck letter forms?

Has anyone else experienced anomalous behavior using "Undo" (Ctrl-z) with notational alphabet letter forms? Since Mathematica's built-in functions are capitalized, one generally avoids beginning user-...
0
votes
1answer
165 views

How to get the meaning of a Mathematica symbol you don't know ? [closed]

I would like to know how can I get help on a Mathematica symbol that I don't know ? There is often this case when I read some codes from forum or collegues. Thank you for your help.
13
votes
1answer
160 views

All value types for a symbol?

Robby Villegas here shows a nice way to see all the types associated with a symbol. He sets a symbol, valueTypes, to an explicit list of the values types in ...
3
votes
3answers
298 views

How to identify all rules that match pattern type? [duplicate]

I would like to be extend the below solution to be able to find get all rules from the list step[2] that match the generic pattern k_Digit_p. Where k and p are not ...
13
votes
2answers
371 views

Why does leaving and re-entering a context lose values defined in that context?

I'm getting unexpected behavior when beginning a new context, leaving it, and then re-entering it. Specifically, when re-entering the context, symbols that had been previously defined in that context ...
1
vote
1answer
76 views

Finding parameters for which a function/symbol is defined

Suppose I have a symbol/function defined pointwise like in f[1, 5] = 3 f[3] = 7 f[2, 3.4] = 8 By executing ?f I can see the ...
0
votes
0answers
45 views

in the part assignment is not a symbol, create different matrices with a “Do” loop [duplicate]

Im trying to assemble new matrices from some previous matrices I have created, but I can´t. What Im trying to do is the following: 1) I have different matrices: ...
5
votes
1answer
86 views

How to get all the symbols `x` for which `f[x]` is defined?

Assume that definitions like the following are in place: ...
2
votes
0answers
52 views

Import names into notebook namespace [duplicate]

I have function that at some point has list of strings (e.g. {"apple","pear"}) and I want to declare (initialize) those variables in notebook namespace to default ...
1
vote
1answer
83 views

Replace symbols in output without evaluation

I found the Wolfram example for ExpandNCM but I want a more human-readable output form. I want to evaluate ExpandNCM, for example with ...